(t *testing.T)
| 97 | } |
| 98 | |
| 99 | func TestParseInvalid(t *testing.T) { |
| 100 | gCodes := []string{ |
| 101 | "(Invalid Comment", // <- missing end brace |
| 102 | "g1", // <- not upper case |
| 103 | "G", // <- missing value |
| 104 | "GF", // <- invalid value |
| 105 | } |
| 106 | |
| 107 | for _, gc := range gCodes { |
| 108 | _, err := ParseFile(strings.NewReader(gc)) |
| 109 | assert.Error(t, err) |
| 110 | } |
| 111 | } |
nothing calls this directly
no test coverage detected