Skip to content

Commit cc4c8ff

Browse files
committed
test case update to adapt versioning
1 parent ab27b36 commit cc4c8ff

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

go_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestLookExecutable(t *testing.T) {
1919
}
2020

2121
func TestIsImportPathExists(t *testing.T) {
22-
assert.Equal(t, true, IsImportPathExists("aahframework.org/essentials.v0"))
22+
assert.Equal(t, true, IsImportPathExists("aahframework.org/test.v0"))
2323

2424
assert.Equal(t, false, IsImportPathExists("aahframework.org/unknown"))
2525
}

reflect_test.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ package ess
66

77
import (
88
"fmt"
9+
"strings"
910
"testing"
1011

1112
"aahframework.org/test.v0/assert"
@@ -17,7 +18,8 @@ func TestGetFunctionInfo(t *testing.T) {
1718
}
1819

1920
info := GetFunctionInfo(testFunc1)
20-
assert.Equal(t, "aahframework.org/essentials.v0.testFunc1", info.QualifiedName)
21+
assert.True(t, strings.Contains(info.QualifiedName, "aahframework.org/essentials"))
22+
assert.True(t, strings.Contains(info.QualifiedName, "testFunc1"))
2123

2224
info = GetFunctionInfo(SampleStr{})
2325
assert.Equal(t, "", info.Name)
@@ -30,7 +32,8 @@ func TestGetFunctionInfo(t *testing.T) {
3032
func TestGetCallerInfo(t *testing.T) {
3133
caller := GetCallerInfo()
3234
assert.Equal(t, "TestGetCallerInfo", caller.FunctionName)
33-
assert.Equal(t, "aahframework.org/essentials.v0.TestGetCallerInfo", caller.QualifiedName)
35+
assert.True(t, strings.Contains(caller.QualifiedName, "aahframework.org/essentials"))
36+
assert.True(t, strings.Contains(caller.QualifiedName, "TestGetCallerInfo"))
3437
assert.Equal(t, "reflect_test.go", caller.FileName)
3538
}
3639

0 commit comments

Comments
 (0)