Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.3% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 8.9% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/maratori/testpackage

testpackage is golang linter that makes you use a separate `_test` package. According to blackbox testing approach, you should not use unexported functions and methods from source code in tests. Go allows to place tests in a separate package with suffix `_test`. For example, tests for `store` package can be in the same package or in the package `store_test`. In the second case, you have to import the source code into tests so only exported things are available. The linter reports if a test is in a package without suffix `_test`. If you really need to test unexported function, then put the test into file `XXX_internal_test.go`. The linter skips such files by default. It also skips the file `export_test.go` by default (see the last article below). More detailed articles on this topic:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/maratori/testpackage
Keywords: go, golang, linter, testing
License: MIT
Latest release: about 1 year ago
First release: over 4 years ago
Namespace: github.com/maratori
Dependent packages: 904
Dependent repositories: 8,338
Stars: 29 on GitHub
Forks: 4 on GitHub
Docker dependents: 248
Docker downloads: 3,261,361,325
See more repository details: repos.ecosyste.ms
Last synced: 9 days ago

    Loading...
    Readme
    Loading...