@@ -40,12 +40,12 @@ func TestKhataExplain(t *testing.T) {
40
40
return
41
41
}
42
42
43
- if k .Explanations ()[0 ].FunctionName () != "github.com/cmseguin/khata_test.subFnExplain" {
43
+ if k .Explanations ()[0 ].FunctionName != "github.com/cmseguin/khata_test.subFnExplain" {
44
44
t .Error ("Explain() did not set the function name" )
45
45
return
46
46
}
47
47
48
- if k .Explanations ()[0 ].Message () != "This is an explanation for subFnExplain" {
48
+ if k .Explanations ()[0 ].Message != "This is an explanation for subFnExplain" {
49
49
t .Error ("Explain() did not set the explanation message" )
50
50
return
51
51
}
@@ -60,13 +60,13 @@ func TestKhataExplainf(t *testing.T) {
60
60
t .Error ("Explainf() did not set the explanation" )
61
61
return
62
62
}
63
- println (k .Explanations ()[0 ].FunctionName () )
64
- if k .Explanations ()[0 ].FunctionName () != "github.com/cmseguin/khata_test.TestKhataExplainf" {
63
+ println (k .Explanations ()[0 ].FunctionName )
64
+ if k .Explanations ()[0 ].FunctionName != "github.com/cmseguin/khata_test.TestKhataExplainf" {
65
65
t .Error ("Explainf() did not set the function name" )
66
66
return
67
67
}
68
68
69
- if k .Explanations ()[0 ].Message () != "This is an explanation" {
69
+ if k .Explanations ()[0 ].Message != "This is an explanation" {
70
70
t .Error ("Explainf() did not set the explanation message" )
71
71
return
72
72
}
@@ -258,7 +258,7 @@ func TestKhataErrorChaining(t *testing.T) {
258
258
return
259
259
}
260
260
261
- if k .Explanations ()[0 ].Message () != "This is an explanation" {
261
+ if k .Explanations ()[0 ].Message != "This is an explanation" {
262
262
t .Error ("Explain() did not set the explanation message" )
263
263
return
264
264
}
0 commit comments