File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ import (
12
12
/// -> Apache 2.0 LICENSE
13
13
///
14
14
15
- type fake struct {}
15
+ // type fake struct{}
16
16
17
17
var (
18
18
// packageName = reflect.TypeOf(fake{}).PkgPath()
19
- packageName = "samber/ do"
19
+ packageName = "do"
20
20
packageNameStacktrace = packageName + "/stacktrace/"
21
21
packageNameExamples = packageName + "/examples/"
22
22
)
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func TestStacktrace(t *testing.T) {
27
27
is .True (ok )
28
28
is .NotNil (frame )
29
29
is .NotEmpty (frame )
30
- is .True (strings .HasSuffix (frame .File , "github.com/samber/ do/stacktrace/stacktrace_test.go" ))
30
+ is .True (strings .HasSuffix (frame .File , "do/stacktrace/stacktrace_test.go" ))
31
31
is .Equal ("example1" , frame .Function )
32
32
is .Equal (12 , frame .Line )
33
33
}
@@ -39,7 +39,7 @@ func TestNewFrameFromPtr(t *testing.T) {
39
39
is .True (ok )
40
40
is .NotNil (frame )
41
41
is .NotEmpty (frame )
42
- is .True (strings .HasSuffix (frame .File , "github.com/samber/ do/stacktrace/stacktrace_test.go" ))
42
+ is .True (strings .HasSuffix (frame .File , "do/stacktrace/stacktrace_test.go" ))
43
43
is .Equal ("provider" , frame .Function )
44
44
is .Equal (16 , frame .Line )
45
45
}
@@ -51,5 +51,5 @@ func TestFrame_String(t *testing.T) {
51
51
is .True (ok )
52
52
is .NotNil (frame )
53
53
is .NotEmpty (frame )
54
- is .True (strings .Contains (frame .String (), "github.com/samber/ do/stacktrace/stacktrace_test.go:example1:12" ))
54
+ is .True (strings .Contains (frame .String (), "do/stacktrace/stacktrace_test.go:example1:12" ))
55
55
}
You can’t perform that action at this time.
0 commit comments