github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/internal/testutil/testing.go (about) 1 package testutil 2 3 import ( 4 "testing" 5 6 testingx "github.com/octohelm/x/testing" 7 ) 8 9 func Expect[A any](t testing.TB, actual A, matcheres ...testingx.Matcher[A]) { 10 t.Helper() 11 testingx.Expect[A](t, actual, matcheres...) 12 } 13 14 func Not[A any](m testingx.Matcher[A]) testingx.Matcher[A] { 15 return testingx.Not(m) 16 } 17 18 func Be[A any](e A) testingx.Matcher[A] { 19 return testingx.Be(e) 20 } 21 22 func Equal[A any](e A) testingx.Matcher[A] { 23 return testingx.Equal(e) 24 } 25 26 func HaveLen[A any](c int) testingx.Matcher[A] { 27 return testingx.HaveLen[A](c) 28 }