A test function is named so that go test never runs it

tx0/go:malformed-test-namedefaultwarningbug

What it finds

func Testparse(t *testing.T): go test runs a function as a test only when the word after Test does not start with a lower-case letter, so this one is never run and its failures are never seen. The same holds for Benchmark and Fuzz.

Reported are functions of files ending in _test.go whose name starts with Test, Benchmark or Fuzz followed by a lower-case letter and that take a single parameter written *testing.T, *testing.B or *testing.F, which shows that a test was meant.

From the rule's source, malformed_test_name.rs.

Turn it on, off or suppress it

The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:

tx0.toml
[rules]
"tx0/go:malformed-test-name" = "off"

To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:

// tx0: ignore[tx0/go:malformed-test-name] reason="..."

tx0 explain tx0/go:malformed-test-name shows the same in the terminal. Found a false positive? Report it.