mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
11 lines
246 B
Go
11 lines
246 B
Go
package middleware
|
|
|
|
import "testing"
|
|
|
|
func TestVerifyLicense(t *testing.T) {
|
|
licPath := "testdata/license.yb"
|
|
licSoPath := "wrong path"
|
|
if err := verifyLicense(licPath, licSoPath); err == nil {
|
|
t.Errorf("expected error, but return nil")
|
|
}
|
|
} |