go/src/html/template/escape_test.go

type badMarshaler

func (x *badMarshaler) MarshalJSON() ([]byte, error) {}

type goodMarshaler

func (x *goodMarshaler) MarshalJSON() ([]byte, error) {}

func TestEscape(t *testing.T) {}

func TestEscapeMap(t *testing.T) {}

func TestEscapeSet(t *testing.T) {}

func TestErrors(t *testing.T) {}

func TestEscapeText(t *testing.T) {}

func TestEnsurePipelineContains(t *testing.T) {}

func TestEscapeMalformedPipelines(t *testing.T) {}

func TestEscapeErrorsNotIgnorable(t *testing.T) {}

func TestEscapeSetErrorsNotIgnorable(t *testing.T) {}

func TestRedundantFuncs(t *testing.T) {}

func TestIndirectPrint(t *testing.T) {}

// This is a test for issue 3272.
func TestEmptyTemplateHTML(t *testing.T) {}

type Issue7379

func (Issue7379) SomeMethod(x int) string {}

// This is a test for issue 7379: type assertion error caused panic, and then
// the code to handle the panic breaks escaping. It's hard to see the second
// problem once the first is fixed, but its fix is trivial so we let that go. See
// the discussion for issue 7379.
func TestPipeToMethodIsEscaped(t *testing.T) {}

// Unlike text/template, html/template crashed if given an incomplete
// template, that is, a template that had been named but not given any content.
// This is issue #10204.
func TestErrorOnUndefined(t *testing.T) {}

// This covers issue #20842.
func TestIdempotentExecute(t *testing.T) {}

func BenchmarkEscapedExecute(b *testing.B) {}

// Covers issue 22780.
func TestOrphanedTemplate(t *testing.T) {}

// Covers issue 21844.
func TestAliasedParseTreeDoesNotOverescape(t *testing.T) {}