MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / TestSyntax

Function TestSyntax

server/webdav/internal/xml/xml_test.go:390–400  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

388}
389
390func TestSyntax(t *testing.T) {
391 for i := range xmlInput {
392 d := NewDecoder(strings.NewReader(xmlInput[i]))
393 var err error
394 for _, err = d.Token(); err == nil; _, err = d.Token() {
395 }
396 if _, ok := err.(*SyntaxError); !ok {
397 t.Fatalf(`xmlInput "%s": expected SyntaxError not received`, xmlInput[i])
398 }
399 }
400}
401
402type allScalars struct {
403 True1 bool

Callers

nothing calls this directly

Calls 2

TokenMethod · 0.95
NewDecoderFunction · 0.85

Tested by

no test coverage detected