"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tpl/internal/go_templates/htmltemplate/escape_test.go" between
hugo-0.80.0.tar.gz and hugo-0.81.0.tar.gz

About: Hugo is a static site generator that takes a source directory of Markdown files and templates and uses these as input to create a complete website (written in Go).

escape_test.go  (hugo-0.80.0):escape_test.go  (hugo-0.81.0)
skipping to change at line 1828 skipping to change at line 1828
buf.Reset() buf.Reset()
err = tmpl.Execute(&buf, bpp) err = tmpl.Execute(&buf, bpp)
if err != nil { if err != nil {
t.Errorf("Unexpected error: %s", err) t.Errorf("Unexpected error: %s", err)
} else if buf.String() != "hello" { } else if buf.String() != "hello" {
t.Errorf(`Expected "hello"; got %q`, buf.String()) t.Errorf(`Expected "hello"; got %q`, buf.String())
} }
} }
// This is a test for issue 3272. // This is a test for issue 3272.
func TestEmptyTemplate(t *testing.T) { func TestEmptyTemplateHTML(t *testing.T) {
page := Must(New("page").ParseFiles(os.DevNull)) page := Must(New("page").ParseFiles(os.DevNull))
if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil { if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil {
t.Fatal("expected error") t.Fatal("expected error")
} }
} }
type Issue7379 int type Issue7379 int
func (Issue7379) SomeMethod(x int) string { func (Issue7379) SomeMethod(x int) string {
return fmt.Sprintf("<%d>", x) return fmt.Sprintf("<%d>", x)
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)