diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-10 21:05:17 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-12 13:26:32 +0200 |
commit | 9e571827055dedb46b78c5db3d17d6913f14870b (patch) | |
tree | f5f0108afe0c9385ff6dc27664943d9f719f57ad /tpl/internal | |
parent | 6027ee11082d0b9d72de1d4d1980a702be294ad2 (diff) |
tests: Convert from testify to quicktest
Diffstat (limited to 'tpl/internal')
-rw-r--r-- | tpl/internal/templatefuncRegistry_test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tpl/internal/templatefuncRegistry_test.go b/tpl/internal/templatefuncRegistry_test.go index ec7fbeb1a..8609bf34a 100644 --- a/tpl/internal/templatefuncRegistry_test.go +++ b/tpl/internal/templatefuncRegistry_test.go @@ -17,7 +17,7 @@ import ( "runtime" "testing" - "github.com/stretchr/testify/require" + qt "github.com/frankban/quicktest" ) type Test struct { @@ -28,11 +28,12 @@ func (t *Test) MyTestMethod() string { } func TestMethodToName(t *testing.T) { + c := qt.New(t) test := &Test{} if runtime.Compiler == "gccgo" { - require.Contains(t, methodToName(test.MyTestMethod), "thunk") + c.Assert(methodToName(test.MyTestMethod), qt.Contains, "thunk") } else { - require.Equal(t, "MyTestMethod", methodToName(test.MyTestMethod)) + c.Assert(methodToName(test.MyTestMethod), qt.Equals, "MyTestMethod") } } |