github.com/Aoi-hosizora/ahlib@v1.5.1-0.20230404072829-241b93cf91c7/xtesting/README.md (about)

     1  # xtesting
     2  
     3  ## Dependencies
     4  
     5  + xreflect
     6  
     7  ## Documents
     8  
     9  ### Types
    10  
    11  + None
    12  
    13  ### Variables
    14  
    15  + None
    16  
    17  ### Constants
    18  
    19  + None
    20  
    21  ### Functions
    22  
    23  #### Testing Functions
    24  
    25  + `func Equal(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    26  + `func NotEqual(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    27  + `func EqualValue(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    28  + `func NotEqualValue(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    29  + `func SamePointer(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    30  + `func NotSamePointer(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    31  + `func SameFunction(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    32  + `func NotSameFunction(t testing.TB, give, want interface{}, msgAndArgs ...interface{}) bool`
    33  + `func True(t testing.TB, value bool, msgAndArgs ...interface{}) bool`
    34  + `func False(t testing.TB, value bool, msgAndArgs ...interface{}) bool`
    35  + `func Nil(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    36  + `func NotNil(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    37  + `func Zero(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    38  + `func NotZero(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    39  + `func BlankString(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    40  + `func NotBlankString(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    41  + `func EmptyCollection(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    42  + `func NotEmptyCollection(t testing.TB, value interface{}, msgAndArgs ...interface{}) bool`
    43  + `func Error(t testing.TB, err error, msgAndArgs ...interface{}) bool`
    44  + `func NilError(t testing.TB, err error, msgAndArgs ...interface{}) bool`
    45  + `func EqualError(t testing.TB, err error, wantString string, msgAndArgs ...interface{}) bool`
    46  + `func NotEqualError(t testing.TB, err error, wantString string, msgAndArgs ...interface{}) bool`
    47  + `func MatchRegexp(t testing.TB, rx interface{}, str string, msgAndArgs ...interface{}) bool`
    48  + `func NotMatchRegexp(t testing.TB, rx interface{}, str string, msgAndArgs ...interface{}) bool`
    49  + `func InDelta(t testing.TB, give, want interface{}, delta float64, msgAndArgs ...interface{}) bool`
    50  + `func NotInDelta(t testing.TB, give, want interface{}, delta float64, msgAndArgs ...interface{}) bool`
    51  + `func InEpsilon(t testing.TB, give, want interface{}, epsilon float64, msgAndArgs ...interface{}) bool`
    52  + `func NotInEpsilon(t testing.TB, give, want interface{}, epsilon float64, msgAndArgs ...interface{}) bool`
    53  + `func Contain(t testing.TB, container, value interface{}, msgAndArgs ...interface{}) bool`
    54  + `func NotContain(t testing.TB, container, value interface{}, msgAndArgs ...interface{}) bool`
    55  + `func Subset(t testing.TB, list, subset interface{}, msgAndArgs ...interface{}) bool`
    56  + `func NotSubset(t testing.TB, list, subset interface{}, msgAndArgs ...interface{}) bool`
    57  + `func ElementMatch(t testing.TB, listA, listB interface{}, msgAndArgs ...interface{}) bool`
    58  + `func NotElementMatch(t testing.TB, listA, listB interface{}, msgAndArgs ...interface{}) bool`
    59  + `func SameType(t testing.TB, value, want interface{}, msgAndArgs ...interface{}) bool`
    60  + `func NotSameType(t testing.TB, value, want interface{}, msgAndArgs ...interface{}) bool`
    61  + `func Implement(t testing.TB, value, interfacePtr interface{}, msgAndArgs ...interface{}) bool`
    62  + `func NotImplement(t testing.TB, value, interfacePtr interface{}, msgAndArgs ...interface{}) bool`
    63  + `func Panic(t testing.TB, f func(), msgAndArgs ...interface{}) bool`
    64  + `func NotPanic(t testing.TB, f func(), msgAndArgs ...interface{}) bool`
    65  + `func PanicWithValue(t testing.TB, want interface{}, f func(), msgAndArgs ...interface{}) bool`
    66  + `func PanicWithError(t testing.TB, wantString string, f func(), msgAndArgs ...interface{}) bool`
    67  + `func FileExist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    68  + `func FileNotExist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    69  + `func FileLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    70  + `func FileNotLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    71  + `func DirExist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    72  + `func DirNotExist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    73  + `func DirLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    74  + `func DirNotLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    75  + `func SymlinkLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    76  + `func SymlinkNotLexist(t testing.TB, path string, msgAndArgs ...interface{}) bool`
    77  
    78  #### Helper Functions
    79  
    80  + `func SetExtraSkip(skip int32)`
    81  + `func UseFailNow(failNow bool)`
    82  + `func Assert(condition bool, format string, v ...interface{}) bool`
    83  + `func GoTool() (string, error)`
    84  
    85  ### Methods
    86  
    87  + None