(t *testing.T)
| 11 | import "testing" |
| 12 | |
| 13 | func TestConvertStatName(t *testing.T) { |
| 14 | tests := []struct { |
| 15 | in string |
| 16 | out string |
| 17 | }{ |
| 18 | { |
| 19 | "/x/y/z", |
| 20 | "y_z", |
| 21 | }, |
| 22 | } |
| 23 | |
| 24 | for _, test := range tests { |
| 25 | actual := convertStatName(test.in) |
| 26 | if actual != test.out { |
| 27 | t.Errorf("expected '%s' got '%s' for '%s'", test.out, actual, test.in) |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestCamelToUnderscore(t *testing.T) { |
| 33 | tests := []struct { |
nothing calls this directly
no test coverage detected