(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestShowVersion(t *testing.T) { |
| 9 | output, err := pkgstats(t, []string{"version"}) |
| 10 | if err != nil { |
| 11 | t.Fatalf("Failed to run command: %v", err) |
| 12 | } |
| 13 | if !strings.Contains(output, "version") { |
| 14 | t.Errorf("Expected version output to contain 'version', got %s", output) |
| 15 | } |
| 16 | } |
nothing calls this directly
no test coverage detected