Fix the issue by using text/template instead of html/template
This commit is contained in:
parent
8e7263835a
commit
22752b6056
@ -8,10 +8,10 @@ import (
|
|||||||
"go/parser"
|
"go/parser"
|
||||||
"go/token"
|
"go/token"
|
||||||
"go/types"
|
"go/types"
|
||||||
"html/template"
|
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
"text/template"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Mocker can generate mock structs.
|
// Mocker can generate mock structs.
|
||||||
|
@ -115,7 +115,7 @@ func TestNothingToReturn(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestChannelsName(t *testing.T) {
|
func TestChannelNames(t *testing.T) {
|
||||||
m, err := New("testdata/channels", "")
|
m, err := New("testdata/channels", "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("moq.New: %s", err)
|
t.Errorf("moq.New: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user