gitee.com/sy_183/go-common@v1.0.5-0.20231205030221-958cfe129b47/errors/errors_test.go (about)

     1  package errors
     2  
     3  import (
     4  	"fmt"
     5  	"testing"
     6  )
     7  
     8  func TestErrors(t *testing.T) {
     9  	arr := Errors{}
    10  	e := New("hello")
    11  	fmt.Println(arr.Error(), e)
    12  }
    13  
    14  func TestNotFound(t *testing.T) {
    15  	println(NewNotFound(1).Error())
    16  }