Commit c93df0c
n-api: refactoring napi_create_function testing
This is a refactoring of #26998
following #28505.
The functions `add_last_status()` and `add_returned_status()` are now
reused, see also #28848.
PR-URL: #28894
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>1 parent 7c80963 commit c93df0cCopy full SHA for c93df0c
File tree
Expand file treeCollapse file tree
3 files changed
+42
-69
lines changedOpen diff view settings
Filter options
- test/js-native-api/test_function
Expand file treeCollapse file tree
3 files changed
+42
-69
lines changedOpen diff view settings
Collapse file
test/js-native-api/test_function/binding.gyp
Copy file name to clipboardExpand all lines: test/js-native-api/test_function/binding.gyp+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
|
Collapse file
test/js-native-api/test_function/test.js
Copy file name to clipboardExpand all lines: test/js-native-api/test_function/test.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
44 | 44 | |
Collapse file
test/js-native-api/test_function/test_function.c
Copy file name to clipboardExpand all lines: test/js-native-api/test_function/test_function.c+37-65Lines changed: 37 additions & 65 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
| 6 | + |
| 7 | + |
8 | 8 | |
| 9 | + |
9 | 10 | |
10 | | - |
| 11 | + |
11 | 12 | |
12 | 13 | |
13 | 14 | |
14 | 15 | |
15 | 16 | |
16 | 17 | |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
44 | | - |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
79 | 51 | |
80 | 52 | |
81 | 53 | |
|
0 commit comments