1
// Copyright 2011 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
addTestCases(templateTests, template)
11
var templateTests = []testCase{
22
var t template.Template
23
x, y := template.ParseFile()
24
template.New("x").Funcs(m).ParseFile(a) // chained method
25
// Output should complain about these as functions or methods.
28
template.ParseSetGlob(a)
29
s.ParseTemplateFiles(a)
30
template.ParseTemplateGlob(a)
31
x := template.SetMust(a())
41
template.ParseFiles(a)
42
var t template.Template
43
x, y := template.ParseFiles()
44
template.New("x").Funcs(m).ParseFiles(a) // chained method
45
// Output should complain about these as functions or methods.
48
template.ParseSetGlob(a)
49
s.ParseTemplateFiles(a)
50
template.ParseTemplateGlob(a)
51
x := template.SetMust(a())