github.com/zxysilent/utils@v0.3.1/reply_test.go (about)

     1  package utils
     2  
     3  import "testing"
     4  
     5  func TestReply(t *testing.T) {
     6  	Succ("succ")
     7  	Fail("fail")
     8  	Page("page", []int{}, 0)
     9  	ErrDeny("deny")
    10  	ErrIpt("ipt")
    11  	ErrOpt("opt")
    12  	ErrSvr("svr")
    13  	ErrToken("token")
    14  	Ext("ext")
    15  }
    16  func TestReplyData(t *testing.T) {
    17  	Succ("succ", struct{ A, b int }{})
    18  	Fail("fail", struct{ A, b int }{})
    19  	Page("page", []int{}, 0)
    20  	ErrDeny("deny", struct{ A, b int }{})
    21  	ErrIpt("ipt", struct{ A, b int }{})
    22  	ErrOpt("opt", struct{ A, b int }{})
    23  	ErrSvr("svr", struct{ A, b int }{})
    24  	ErrToken("token")
    25  	Ext("ext", struct{ A, b int }{})
    26  }