@@ -31,6 +31,8 @@ func TestWithAdditionalLocationOffset(t *testing.T) {
3131 },
3232 expectedOutput : []map [string ]interface {}{
3333 {
34+ // Caller line (number after colon) should match
35+ // tflog.SubsystemTrace() line in test case implementation.
3436 "@caller" : "/tflog/options_test.go:30" ,
3537 "@level" : hclog .Trace .String (),
3638 "@message" : "test message" ,
@@ -45,6 +47,9 @@ func TestWithAdditionalLocationOffset(t *testing.T) {
4547 },
4648 expectedOutput : []map [string ]interface {}{
4749 {
50+ // Caller line (number after colon) should match
51+ // tflog.SubsystemTrace() line in testSubsystemTraceHelper
52+ // function implementation.
4853 "@caller" : "/tflog/options_test.go:16" ,
4954 "@level" : hclog .Trace .String (),
5055 "@message" : "test message" ,
@@ -59,7 +64,10 @@ func TestWithAdditionalLocationOffset(t *testing.T) {
5964 },
6065 expectedOutput : []map [string ]interface {}{
6166 {
62- "@caller" : "/tflog/options_test.go:58" ,
67+ // Caller line (number after colon) should match
68+ // testSubsystemTraceHelper() line in test case
69+ // implementation.
70+ "@caller" : "/tflog/options_test.go:63" ,
6371 "@level" : hclog .Trace .String (),
6472 "@message" : "test message" ,
6573 "@module" : testSubsystemModule ,
0 commit comments