Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test coverage #3

Open
jrcasso opened this issue Sep 21, 2020 · 2 comments
Open

Add test coverage #3

jrcasso opened this issue Sep 21, 2020 · 2 comments
Assignees
Labels

Comments

@jrcasso
Copy link
Owner

jrcasso commented Sep 21, 2020

The majority of functions need some kind of unit tests. The most important functions have been tested but we endeavor to implement 100% test coverage. The sooner, the better.

This is high priority.

@jrcasso jrcasso self-assigned this Sep 21, 2020
@jrcasso
Copy link
Owner Author

jrcasso commented Feb 18, 2021

As of this comment, the current test coverage percentage is an abysmal 43.8%.

@jrcasso jrcasso added the urgent label Feb 18, 2021
@jrcasso
Copy link
Owner Author

jrcasso commented May 2, 2021

I've made decent strides, but not finished quite yet:

github.com/jrcasso/gograph/gograph.go:48:               CreateGraph             100.0%
github.com/jrcasso/gograph/gograph.go:55:               CreateDirectedEdge      100.0%
github.com/jrcasso/gograph/gograph.go:62:               CreateDirectedNode      88.9%
github.com/jrcasso/gograph/gograph.go:107:              CreateDirectedNodeID    100.0%
github.com/jrcasso/gograph/gograph.go:117:              DeleteDirectedEdge      100.0%
github.com/jrcasso/gograph/gograph.go:135:              FindNode                100.0%
github.com/jrcasso/gograph/gograph.go:145:              FindDirectedNode        100.0%
github.com/jrcasso/gograph/gograph.go:155:              FindNodesByValues       100.0%
github.com/jrcasso/gograph/gograph.go:174:              TopologicalSort         95.0%
github.com/jrcasso/gograph/gograph.go:217:              CreateAdjecencyMatrix   0.0%
github.com/jrcasso/gograph/gograph.go:240:              CreateIncidenceMatrix   0.0%
github.com/jrcasso/gograph/gograph.go:266:              PrintMatrix             0.0%
github.com/jrcasso/gograph/gograph.go:273:              IsAntisymmetricMatrix   0.0%
github.com/jrcasso/gograph/gograph_test_helper.go:7:    expectEqualInts         50.0%
github.com/jrcasso/gograph/gograph_test_helper.go:13:   expectEqualStrings      50.0%
github.com/jrcasso/gograph/gograph_test_helper.go:19:   describe                100.0%
github.com/jrcasso/gograph/gograph_test_helper.go:23:   it                      100.0%
github.com/jrcasso/gograph/gograph_test_helper.go:27:   context                 100.0%
total:                                                  (statements)            66.7%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant