Skip to content

Commit

Permalink
Add integration test for instrumentation file extension fix
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Feb 19, 2020
1 parent 39bfc89 commit b6b8308
Show file tree
Hide file tree
Showing 8 changed files with 504 additions and 0 deletions.
371 changes: 371 additions & 0 deletions e2e/__tests__/__snapshots__/coverageHandlebars.test.ts.snap
@@ -0,0 +1,371 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`code coverage for Handlebars 1`] = `
Object {
"greet.hbs": Object {
"b": Object {
"0": Array [
2,
0,
],
"1": Array [
1,
0,
],
"2": Array [
1,
0,
],
"3": Array [
1,
1,
],
"4": Array [
1,
1,
],
"5": Array [
1,
0,
],
},
"branchMap": Object {
"0": Object {
"loc": Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
"locations": Array [
Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
],
"type": "cond-expr",
},
"1": Object {
"loc": Object {
"end": Object {
"column": 6,
"line": 2,
},
"start": Object {
"column": 0,
"line": 2,
},
},
"locations": Array [
Object {
"end": Object {
"column": 6,
"line": 2,
},
"start": Object {
"column": 0,
"line": 2,
},
},
Object {
"end": Object {
"column": 6,
"line": 2,
},
"start": Object {
"column": 0,
"line": 2,
},
},
],
"type": "cond-expr",
},
"2": Object {
"loc": Object {
"end": Object {
"column": 10,
"line": 2,
},
"start": Object {
"column": 6,
"line": 2,
},
},
"locations": Array [
Object {
"end": Object {
"column": 10,
"line": 2,
},
"start": Object {
"column": 6,
"line": 2,
},
},
Object {
"end": Object {
"column": 10,
"line": 2,
},
"start": Object {
"column": 6,
"line": 2,
},
},
],
"type": "cond-expr",
},
"3": Object {
"loc": Object {
"end": Object {
"column": 2,
"line": 7,
},
"start": Object {
"column": 0,
"line": 7,
},
},
"locations": Array [
Object {
"end": Object {
"column": 2,
"line": 7,
},
"start": Object {
"column": 0,
"line": 7,
},
},
Object {
"end": Object {
"column": 2,
"line": 7,
},
"start": Object {
"column": 0,
"line": 7,
},
},
],
"type": "cond-expr",
},
"4": Object {
"loc": Object {
"end": Object {
"column": 2,
"line": 7,
},
"start": Object {
"column": 0,
"line": 7,
},
},
"locations": Array [
Object {
"end": Object {
"column": 2,
"line": 7,
},
"start": Object {
"column": 0,
"line": 7,
},
},
Object {
"end": Object {
"column": 8,
"line": 7,
},
"start": Object {
"column": 2,
"line": 7,
},
},
],
"type": "binary-expr",
},
"5": Object {
"loc": Object {
"end": Object {
"column": 8,
"line": 7,
},
"start": Object {
"column": 2,
"line": 7,
},
},
"locations": Array [
Object {
"end": Object {
"column": 8,
"line": 7,
},
"start": Object {
"column": 2,
"line": 7,
},
},
Object {
"end": Object {
"column": 8,
"line": 7,
},
"start": Object {
"column": 2,
"line": 7,
},
},
],
"type": "cond-expr",
},
},
"f": Object {
"0": 1,
"1": 0,
"2": 1,
},
"fnMap": Object {
"0": Object {
"decl": Object {
"end": Object {
"column": null,
"line": 2,
},
"start": Object {
"column": 10,
"line": 2,
},
},
"loc": Object {
"end": Object {
"column": null,
"line": 2,
},
"start": Object {
"column": 10,
"line": 2,
},
},
"name": "(anonymous_0)",
},
"1": Object {
"decl": Object {
"end": Object {
"column": null,
"line": 4,
},
"start": Object {
"column": 8,
"line": 4,
},
},
"loc": Object {
"end": Object {
"column": null,
"line": 4,
},
"start": Object {
"column": 8,
"line": 4,
},
},
"name": "(anonymous_1)",
},
"2": Object {
"decl": Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
"loc": Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
"name": "(anonymous_2)",
},
},
"path": "greet.hbs",
"s": Object {
"0": 1,
"1": 0,
"2": 2,
"3": 1,
},
"statementMap": Object {
"0": Object {
"end": Object {
"column": null,
"line": 2,
},
"start": Object {
"column": 10,
"line": 2,
},
},
"1": Object {
"end": Object {
"column": null,
"line": 4,
},
"start": Object {
"column": 8,
"line": 4,
},
},
"2": Object {
"end": Object {
"column": null,
"line": 1,
},
"start": Object {
"column": 0,
"line": 1,
},
},
"3": Object {
"end": Object {
"column": null,
"line": 7,
},
"start": Object {
"column": 0,
"line": 1,
},
},
},
},
}
`;

0 comments on commit b6b8308

Please sign in to comment.