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

Function TestIssue5880

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

Source from the content-addressed store, hash-verified

741}
742
743func TestIssue5880(t *testing.T) {
744 type T []byte
745 data, err := Marshal(T{192, 168, 0, 1})
746 if err != nil {
747 t.Errorf("Marshal error: %v", err)
748 }
749 if !utf8.Valid(data) {
750 t.Errorf("Marshal generated invalid UTF-8: %x", data)
751 }
752}

Callers

nothing calls this directly

Calls 2

MarshalFunction · 0.85
ValidMethod · 0.80

Tested by

no test coverage detected