Skip to content

Commit cb37974

Browse files
committed
chore(cymbal): fix go fixture line comment and assert inline frame source
1 parent 88685c0 commit cb37974

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

rust/cymbal/src/core/types/langs/native.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ mod test {
936936
assert_eq!(frames[0].lang, "go");
937937

938938
assert_eq!(frames[1].resolved_name.as_deref(), Some("main.transform"));
939+
assert_eq!(frames[1].source.as_deref(), Some("test_go.go"));
939940
assert_eq!(frames[1].line, Some(16));
940941
assert_eq!(frames[1].lang, "go");
941942
}

rust/cymbal/tests/static/native/test_go.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func process(value int) int {
1414
func transform(value int) int {
1515
doubled := value * 2
1616
doubled += value / 3
17-
// Line 17 - this should appear as an inlined frame
17+
// Line 16 - this should appear as an inlined frame
1818
return doubled + 5
1919
}
2020

0 commit comments

Comments
 (0)