Commit 46cdb2f
test: lint addon tests
Add files in test/addon to the `make cpplint` rule and fix up existing
style issues. Tests scraped from doc/api/addon.md are filtered out
because those are predominantly for illustrative purposes.
PR-URL: #2427
Reviewed-By: Trevor Norris <trev.norris@gmail.com>1 parent 6483bc2 commit 46cdb2fCopy full SHA for 46cdb2f
File tree
Expand file treeCollapse file tree
5 files changed
+40
-35
lines changedOpen diff view settings
Filter options
- test/addons
- async-hello-world
- at-exit
- hello-world-function-export
- hello-world
Expand file treeCollapse file tree
5 files changed
+40
-35
lines changedOpen diff view settings
Collapse file
+13-2Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
483 | 483 | |
484 | 484 | |
485 | 485 | |
486 | | - |
487 | | - |
| 486 | + |
| 487 | + |
| 488 | + |
| 489 | + |
| 490 | + |
| 491 | + |
| 492 | + |
| 493 | + |
| 494 | + |
| 495 | + |
| 496 | + |
| 497 | + |
| 498 | + |
488 | 499 | |
489 | 500 | |
490 | 501 | |
|
Collapse file
test/addons/async-hello-world/binding.cc
Copy file name to clipboardExpand all lines: test/addons/async-hello-world/binding.cc+16-18Lines changed: 16 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
8 | | - |
9 | 6 | |
10 | 7 | |
11 | 8 | |
12 | 9 | |
13 | | - |
| 10 | + |
14 | 11 | |
15 | 12 | |
16 | 13 | |
17 | 14 | |
18 | | - |
| 15 | + |
19 | 16 | |
20 | 17 | |
21 | 18 | |
22 | 19 | |
23 | | - |
24 | | - |
| 20 | + |
| 21 | + |
25 | 22 | |
26 | 23 | |
27 | | - |
28 | | - |
29 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
30 | 27 | |
31 | 28 | |
32 | | - |
| 29 | + |
33 | 30 | |
34 | | - |
| 31 | + |
| 32 | + |
35 | 33 | |
36 | 34 | |
37 | 35 | |
38 | 36 | |
39 | 37 | |
40 | 38 | |
41 | 39 | |
42 | | - |
| 40 | + |
43 | 41 | |
44 | 42 | |
45 | 43 | |
46 | | - |
47 | | - |
48 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
49 | 47 | |
50 | 48 | |
51 | 49 | |
52 | 50 | |
53 | 51 | |
54 | 52 | |
55 | 53 | |
56 | | - |
| 54 | + |
57 | 55 | |
58 | 56 | |
59 | 57 | |
| ||
62 | 60 | |
63 | 61 | |
64 | 62 | |
65 | | - |
| 63 | + |
66 | 64 | |
67 | 65 | |
68 | 66 | |
|
Collapse file
test/addons/at-exit/binding.cc
Copy file name to clipboardExpand all lines: test/addons/at-exit/binding.cc+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
|
Collapse file
test/addons/hello-world-function-export/binding.cc
Copy file name to clipboardExpand all lines: test/addons/hello-world-function-export/binding.cc+5-7Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
10 | 8 | |
11 | 9 | |
12 | | - |
| 10 | + |
13 | 11 | |
14 | 12 | |
15 | 13 | |
|
Collapse file
test/addons/hello-world/binding.cc
Copy file name to clipboardExpand all lines: test/addons/hello-world/binding.cc+5-7Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
10 | 8 | |
11 | 9 | |
12 | | - |
| 10 | + |
13 | 11 | |
14 | 12 | |
15 | 13 | |
|
0 commit comments