Skip to content

Commit f7c4f93

Browse files
committed
Update line number references for Mixpanel tracking in Go tests
1 parent 613a21a commit f7c4f93

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/analyzeGo.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test.describe('analyzeGoFile', () => {
4747
assert.ok(mixpanelEvent);
4848
assert.strictEqual(mixpanelEvent.source, 'mixpanel');
4949
assert.strictEqual(mixpanelEvent.functionName, 'mixpanelTrack');
50-
assert.strictEqual(mixpanelEvent.line, 39);
50+
assert.strictEqual(mixpanelEvent.line, 40);
5151
assert.deepStrictEqual(mixpanelEvent.properties, {
5252
DistinctId: { type: 'string' },
5353
plan: { type: 'string' },
@@ -174,7 +174,7 @@ test.describe('analyzeGoFile', () => {
174174
assert.ok(eventMap['some_event']);
175175
assert.strictEqual(eventMap['some_event'].eventName, 'some_event');
176176
assert.strictEqual(eventMap['some_event'].source, 'mixpanel');
177-
assert.strictEqual(eventMap['some_event'].line, 39);
177+
assert.strictEqual(eventMap['some_event'].line, 40);
178178
assert.strictEqual(eventMap['some_event'].functionName, 'mixpanelTrack');
179179
assert.deepStrictEqual(eventMap['some_event'].properties, {
180180
DistinctId: { type: 'string' },

tests/fixtures/go/tracking-schema-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ events:
2121
some_event:
2222
implementations:
2323
- path: main.go
24-
line: 39
24+
line: 40
2525
function: mixpanelTrack
2626
destination: mixpanel
2727
properties:

tests/fixtures/tracking-schema-all.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ events:
2121
some_event:
2222
implementations:
2323
- path: go/main.go
24-
line: 39
24+
line: 40
2525
function: mixpanelTrack
2626
destination: mixpanel
2727
properties:

0 commit comments

Comments
 (0)