MCPcopy Create free account
hub / github.com/256dpi/gcode / TestParseInvalid

Function TestParseInvalid

parse_test.go:99–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func 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}

Callers

nothing calls this directly

Calls 1

ParseFileFunction · 0.85

Tested by

no test coverage detected