From 22752b60561ab66ab9817318bdb683c5bd5a4187 Mon Sep 17 00:00:00 2001 From: Piotr Rojek Date: Tue, 7 Mar 2017 14:24:56 +0100 Subject: [PATCH] Fix the issue by using text/template instead of html/template --- package/moq/moq.go | 2 +- package/moq/moq_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/moq/moq.go b/package/moq/moq.go index 6ce174d..628e25e 100644 --- a/package/moq/moq.go +++ b/package/moq/moq.go @@ -8,10 +8,10 @@ import ( "go/parser" "go/token" "go/types" - "html/template" "io" "os" "strings" + "text/template" ) // Mocker can generate mock structs. diff --git a/package/moq/moq_test.go b/package/moq/moq_test.go index af16c46..0372756 100644 --- a/package/moq/moq_test.go +++ b/package/moq/moq_test.go @@ -115,7 +115,7 @@ func TestNothingToReturn(t *testing.T) { } } -func TestChannelsName(t *testing.T) { +func TestChannelNames(t *testing.T) { m, err := New("testdata/channels", "") if err != nil { t.Errorf("moq.New: %s", err)