]> 127.0.0.1 Git - part/.git/commitdiff
add
authorqydysky <qydysky@foxmail.com>
Sat, 12 Aug 2023 18:51:59 +0000 (02:51 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 12 Aug 2023 18:51:59 +0000 (02:51 +0800)
component/Component_test.go

index 036d827b9e4939dd34940956422d4df0ddd9f56d..a186d9baa04e088a2dc009926e888caacfe60580 100644 (file)
@@ -104,7 +104,8 @@ func Test3(t *testing.T) {
 }
 
 func Test4(t *testing.T) {
-       if pkg := PKG(`1`, `2`); pkg != `github.com/qydysky/part/component.1.2` {
+       type empty struct{}
+       if pkg := PKG(empty{}, `1`, `2`); pkg != `github.com/qydysky/part/component.1.2` {
                t.Fatal(pkg)
        }
 }