Skip to content

Commit

Permalink
Add a basic test repo for javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
hezyin committed Apr 29, 2018
1 parent 14f58a3 commit 44667b2
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/js_test_repo/A/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const print = console.log;

function funcA () {
print('func A is called!');
}

function main() {
let a = funcA;
a();
}

main();
17 changes: 17 additions & 0 deletions test/js_test_repo/B/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const print = console.log;

function funcA () {
print('func A is called!');
}

function main() {
let a = funcA;
let b = function funcB () {
print('func B is called!');
}
let c = a;
b();
c();
}

main();
18 changes: 18 additions & 0 deletions test/js_test_repo/C/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const print = console.log;

function funcA () {
print('func A is called!');
}

function main() {
let a = funcA;
let b = function funcB () {
funcA();
print('func B is called!');
}
let c = a;
b();
c();
}

main();
3 changes: 3 additions & 0 deletions test/js_test_repo/cg.dot
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
digraph test_feature_branch {
A -> B -> C;
}

0 comments on commit 44667b2

Please sign in to comment.