go-github-mock
gokka
go-github-mock | gokka | |
---|---|---|
1 | 1 | |
90 | 3 | |
- | - | |
6.6 | 0.0 | |
about 2 months ago | over 1 year ago | |
Go | Go | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
go-github-mock
-
Building GitHub Apps with Golang
So far we've been testing the app with localtunnel, which is nice for quick ad-hoc tests against live API, but it doesn't replace proper unit tests. To write unit tests for this app, we need to mock-out the API to avoid being dependent on the external service. To do so, we can use go-github-mock:
gokka
What are some alternatives?
go-github-app - Template for building GitHub Apps in Go.
testcase - testcase is an opinionated testing framework to support test driven design.
apps
mockc - Completely type-safe compile-time mock generator for Go
hoverfly - Lightweight service virtualization/ API simulation / API mocking tool for developers and testers
testing-go-code-with-postgres - The example suggests a solution to the problem of cleaning the database after running tests and the problem of running tests in parallel. It also shows how to organize integration testing of Go code with Postgres.
Testify - A toolkit with common assertions and mocks that plays nicely with the standard library
cue - The home of the CUE language! Validate and define text-based and dynamic configuration
mockit - Library that make mocking of Go functions/methods easy
JSON-to-Go - Translates JSON into a Go type in your browser instantly (original)