diff options
Diffstat (limited to 'testx/create_test.go')
| -rw-r--r-- | testx/create_test.go | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/testx/create_test.go b/testx/create_test.go deleted file mode 100644 index d0e3099..0000000 --- a/testx/create_test.go +++ /dev/null @@ -1,34 +0,0 @@ -//go:build test - -package testx - -import ( - "github.com/stretchr/testify/assert" - "testing" -) - -func TestAssertSourceIs_Correct(t *testing.T) { - src := TSource("abc", "def") - AssertSourceIs(t, "abc", src) -} - -func TestAssertSourceIs_Wrong(t *testing.T) { - src := TSource("abc", "def") - AssertSourceIsNot(t, ";lkjh", src) -} - -func TestAssertTargetIs_Correct(t *testing.T) { - ta := TTarget("aaaa") - AssertTargetIs(t, "aaaa", ta) -} - -func TestAssertTargetIs_Wrong(t *testing.T) { - ta := TTarget("aaaa") - AssertTargetIsNot(t, "bbbbbb", ta) -} - -func TestTTargetIdentity(t *testing.T) { - ta := TTarget("asdf.hidden.sh") - assert.True(t, ta.Matches("asdf")) - assert.False(t, ta.Matches("hidden")) -} |
