MCPcopy Index your code
hub / github.com/SignTools/SignTools / TestEscapeXML

Function TestEscapeXML

main_test.go:284–288  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

282}
283
284func TestEscapeXML(t *testing.T) {
285 escapedText, err := escapeXML("This & That")
286 assert.NoError(t, err)
287 assert.Equal(t, "This & That", escapedText)
288}
289
290func validateXML(input string) error {
291 decoder := xml.NewDecoder(strings.NewReader(input))

Callers

nothing calls this directly

Calls 2

escapeXMLFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected