Go
Malformed test function name
Warning
Code Style
New
Last modified: 03 December 2024Reports malformed names of tests, benchmarks, and examples.
According to Package testing at go.dev, names must follow a special convention in order to make the go tool process them correctly.
Example:
func Testfoo(*testing.T) {} // the 'go' tool will not run this test
After the Rename to quick-fix is applied:
func TestFoo(*testing.T) {}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
GoTestName
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Go, 243.23131 |
Thanks for your feedback!
Was this page helpful?