@contractkit/plugin-bruno 0.10.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$ci.log +7 -7
- package/.turbo/turbo-test$colon$ci.log +7 -8
- package/CHANGELOG.md +15 -0
- package/README.md +10 -18
- package/coverage/clover.xml +105 -151
- package/coverage/coverage-final.json +2 -3
- package/coverage/index.html +19 -19
- package/coverage/src/codegen-bruno.ts.html +93 -93
- package/coverage/src/index.html +9 -24
- package/coverage/tests/helpers.ts.html +9 -9
- package/coverage/tests/index.html +1 -1
- package/dist/index.d.ts +1 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +4 -21
- package/tests/codegen-bruno.test.ts +0 -67
- package/coverage/src/index.ts.html +0 -562
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/plugin-bruno@0.
|
|
2
|
+
> @contractkit/plugin-bruno@1.0.0 build:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
3
3
|
> eslint --max-warnings=0 && pnpm run build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @contractkit/plugin-bruno@0.
|
|
6
|
+
> @contractkit/plugin-bruno@1.0.0 build /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
7
7
|
> tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly --declaration
|
|
8
8
|
|
|
9
9
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
[34mCLI[39m tsup v8.5.1
|
|
12
12
|
[34mCLI[39m Target: esnext
|
|
13
13
|
[34mESM[39m Build start
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
15
|
-
[32mESM[39m [1mdist/index.js.map [22m[
|
|
16
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m20.98 KB[39m
|
|
15
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m50.34 KB[39m
|
|
16
|
+
[32mESM[39m ⚡️ Build success in 158ms
|
|
17
17
|
[34mDTS[39m Build start
|
|
18
|
-
[32mDTS[39m ⚡️ Build success in
|
|
19
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 3705ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.09 KB[39m
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
|
|
2
|
-
> @contractkit/plugin-bruno@0.
|
|
2
|
+
> @contractkit/plugin-bruno@1.0.0 test:ci /home/runner/work/ContractKit/ContractKit/packages/plugin-bruno
|
|
3
3
|
> vitest run --coverage
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.5 [39m[90m/home/runner/work/ContractKit/ContractKit/packages/plugin-bruno[39m
|
|
7
7
|
[2mCoverage enabled with [22m[33mv8[39m
|
|
8
8
|
|
|
9
|
-
[32m✓[39m tests/codegen-bruno.test.ts [2m([22m[
|
|
9
|
+
[32m✓[39m tests/codegen-bruno.test.ts [2m([22m[2m96 tests[22m[2m)[22m[33m 489[2mms[22m[39m
|
|
10
10
|
|
|
11
11
|
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
12
|
-
[2m Tests [22m [1m[
|
|
13
|
-
[2m Start at [22m
|
|
14
|
-
[2m Duration [22m
|
|
12
|
+
[2m Tests [22m [1m[32m96 passed[39m[22m[90m (96)[39m
|
|
13
|
+
[2m Start at [22m 18:49:07
|
|
14
|
+
[2m Duration [22m 4.73s[2m (transform 1.31s, setup 0ms, import 3.04s, tests 489ms, environment 0ms)[22m
|
|
15
15
|
|
|
16
16
|
[34m % [39m[2mCoverage report from [22m[33mv8[39m
|
|
17
17
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------
|
|
18
18
|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
|
|
19
19
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------
|
|
20
|
-
All files |
|
|
21
|
-
src |
|
|
20
|
+
All files | 85.26 | 76.65 | 85.91 | 87.05 |
|
|
21
|
+
src | 86.73 | 76.56 | 91.3 | 88.19 |
|
|
22
22
|
codegen-bruno.ts | 86.73 | 76.56 | 91.3 | 88.19 | 285-286,370,378,431-434,441-448,468,474,478-480,496,506,530,540-542,548-550,555,559-567,576,580
|
|
23
|
-
index.ts | 41.3 | 44.11 | 80 | 37.2 | 45-61,128-155
|
|
24
23
|
tests | 75 | 77.41 | 76 | 78.94 |
|
|
25
24
|
helpers.ts | 75 | 77.41 | 76 | 78.94 | 43-47,55-59,71,113,133,145
|
|
26
25
|
-------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @contractkit/contractkit-plugin-bruno
|
|
2
2
|
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 7555412: Drop the `overrideDir` config option from the Bruno plugin.
|
|
8
|
+
|
|
9
|
+
Per-operation overrides via `plugins: { bruno: "..." }` combined with the new `{{var}}` substitution in `.ck` files cover the same use cases more directly. Define a shared base path once in `options { keys: { bruno: "../bruno-overrides" } }` (or in the plugin's `keys` config in `contractkit.config.json` for a workspace-wide default) and reference per-operation override files with `plugins: { bruno: "{{bruno}}/path/to/file.yml" }`.
|
|
10
|
+
|
|
11
|
+
Migration: replace the `overrideDir` entry in your plugin config with a per-operation `plugins.bruno` declaration on each operation that needs an override.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [7555412]
|
|
16
|
+
- @contractkit/core@0.13.0
|
|
17
|
+
|
|
3
18
|
## 0.10.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -39,7 +39,6 @@ pnpm add @contractkit/contractkit-plugin-bruno
|
|
|
39
39
|
| `collectionName` | `string` | basename of `rootDir` | Collection name shown in Bruno |
|
|
40
40
|
| `randomExamples` | `boolean` | `true` | Use Bruno faker templates (`{{$randomUUID}}`, `{{$randomEmail}}`, etc.) for compatible scalar fields so each send produces fresh data. Set to `false` for stable, deterministic placeholders. |
|
|
41
41
|
| `includeInternal` | `boolean` | `true` | Include operations marked `internal`. Set to `false` to omit them from the collection. |
|
|
42
|
-
| `overrideDir` | `string` | — | Directory of YAML override files (relative to `rootDir`). Files mirror the generated output structure and are deep-merged at codegen time. See [Directory overrides](#directory-overrides). |
|
|
43
42
|
| `auth.defaultScheme` | `string` | — | Key from `auth.schemes` to apply by default |
|
|
44
43
|
| `auth.schemes` | `object` | — | Map of scheme name → security scheme definition |
|
|
45
44
|
|
|
@@ -87,30 +86,23 @@ runtime:
|
|
|
87
86
|
bru.setVar("token", bru.getEnvVar("adminToken"));
|
|
88
87
|
```
|
|
89
88
|
|
|
90
|
-
|
|
89
|
+
Authoring tip: combine per-operation `plugins.bruno` paths with `{{var}}` substitution to factor out a shared override directory:
|
|
91
90
|
|
|
92
|
-
Set `overrideDir` to a directory that mirrors the generated output structure. Any file found there is deep-merged into the matching generated file:
|
|
93
|
-
|
|
94
|
-
```
|
|
95
|
-
bruno-overrides/
|
|
96
|
-
├── opencollection.yml # merged into collection root
|
|
97
|
-
├── environments/
|
|
98
|
-
│ └── local.yml # merged into the Local environment
|
|
99
|
-
└── payments/
|
|
100
|
-
└── get-payment.yml # merged into that request file
|
|
101
91
|
```
|
|
92
|
+
options {
|
|
93
|
+
keys: { bruno: "../../bruno-overrides" }
|
|
94
|
+
}
|
|
102
95
|
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"output": "bruno-collection",
|
|
108
|
-
"overrideDir": "bruno-overrides"
|
|
96
|
+
operation /payments/{id}: {
|
|
97
|
+
get: {
|
|
98
|
+
plugins: { bruno: "{{bruno}}/payments/get-payment.yml" }
|
|
99
|
+
response: { 200: { application/json: Payment } }
|
|
109
100
|
}
|
|
110
|
-
}
|
|
111
101
|
}
|
|
112
102
|
```
|
|
113
103
|
|
|
104
|
+
The `{{bruno}}` reference can also be supplied workspace-wide via the plugin's `keys` config in `contractkit.config.json`.
|
|
105
|
+
|
|
114
106
|
## Programmatic use
|
|
115
107
|
|
|
116
108
|
```typescript
|
package/coverage/clover.xml
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1777661352701" clover="3.2.0">
|
|
3
|
+
<project timestamp="1777661352702" name="All files">
|
|
4
|
+
<metrics statements="309" coveredstatements="269" conditionals="287" coveredconditionals="220" methods="71" coveredmethods="61" elements="667" coveredelements="550" complexity="0" loc="309" ncloc="309" packages="2" files="2" classes="2"/>
|
|
5
5
|
<package name="src">
|
|
6
|
-
<metrics statements="
|
|
6
|
+
<metrics statements="271" coveredstatements="239" conditionals="256" coveredconditionals="196" methods="46" coveredmethods="42"/>
|
|
7
7
|
<file name="codegen-bruno.ts" path="/home/runner/work/ContractKit/ContractKit/packages/plugin-bruno/src/codegen-bruno.ts">
|
|
8
8
|
<metrics statements="271" coveredstatements="239" conditionals="256" coveredconditionals="196" methods="46" coveredmethods="42"/>
|
|
9
9
|
<line num="23" count="1" type="stmt"/>
|
|
10
|
-
<line num="66" count="
|
|
11
|
-
<line num="68" count="
|
|
12
|
-
<line num="69" count="
|
|
13
|
-
<line num="70" count="
|
|
14
|
-
<line num="71" count="
|
|
15
|
-
<line num="72" count="
|
|
16
|
-
<line num="74" count="
|
|
17
|
-
<line num="75" count="
|
|
18
|
-
<line num="78" count="
|
|
19
|
-
<line num="79" count="
|
|
20
|
-
<line num="80" count="
|
|
21
|
-
<line num="81" count="
|
|
22
|
-
<line num="83" count="
|
|
23
|
-
<line num="85" count="
|
|
24
|
-
<line num="86" count="
|
|
25
|
-
<line num="87" count="
|
|
26
|
-
<line num="89" count="
|
|
10
|
+
<line num="66" count="87" type="stmt"/>
|
|
11
|
+
<line num="68" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
12
|
+
<line num="69" count="87" type="stmt"/>
|
|
13
|
+
<line num="70" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
14
|
+
<line num="71" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
15
|
+
<line num="72" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
16
|
+
<line num="74" count="87" type="stmt"/>
|
|
17
|
+
<line num="75" count="87" type="stmt"/>
|
|
18
|
+
<line num="78" count="87" type="stmt"/>
|
|
19
|
+
<line num="79" count="87" type="stmt"/>
|
|
20
|
+
<line num="80" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
21
|
+
<line num="81" count="87" type="cond" truecount="4" falsecount="0"/>
|
|
22
|
+
<line num="83" count="87" type="stmt"/>
|
|
23
|
+
<line num="85" count="87" type="stmt"/>
|
|
24
|
+
<line num="86" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
25
|
+
<line num="87" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
26
|
+
<line num="89" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
27
27
|
<line num="90" count="4" type="stmt"/>
|
|
28
28
|
<line num="91" count="4" type="stmt"/>
|
|
29
|
-
<line num="94" count="
|
|
30
|
-
<line num="95" count="
|
|
31
|
-
<line num="96" count="
|
|
32
|
-
<line num="97" count="
|
|
33
|
-
<line num="98" count="
|
|
34
|
-
<line num="99" count="
|
|
35
|
-
<line num="100" count="
|
|
36
|
-
<line num="101" count="
|
|
37
|
-
<line num="102" count="
|
|
29
|
+
<line num="94" count="87" type="stmt"/>
|
|
30
|
+
<line num="95" count="87" type="stmt"/>
|
|
31
|
+
<line num="96" count="88" type="stmt"/>
|
|
32
|
+
<line num="97" count="92" type="cond" truecount="4" falsecount="0"/>
|
|
33
|
+
<line num="98" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
34
|
+
<line num="99" count="92" type="cond" truecount="2" falsecount="0"/>
|
|
35
|
+
<line num="100" count="92" type="stmt"/>
|
|
36
|
+
<line num="101" count="92" type="stmt"/>
|
|
37
|
+
<line num="102" count="92" type="cond" truecount="2" falsecount="0"/>
|
|
38
38
|
<line num="103" count="5" type="stmt"/>
|
|
39
|
-
<line num="105" count="
|
|
40
|
-
<line num="106" count="
|
|
41
|
-
<line num="111" count="
|
|
42
|
-
<line num="112" count="
|
|
43
|
-
<line num="117" count="
|
|
39
|
+
<line num="105" count="91" type="stmt"/>
|
|
40
|
+
<line num="106" count="91" type="stmt"/>
|
|
41
|
+
<line num="111" count="356" type="stmt"/>
|
|
42
|
+
<line num="112" count="87" type="stmt"/>
|
|
43
|
+
<line num="117" count="87" type="stmt"/>
|
|
44
44
|
<line num="122" count="5" type="stmt"/>
|
|
45
45
|
<line num="123" count="5" type="stmt"/>
|
|
46
46
|
<line num="124" count="7" type="cond" truecount="4" falsecount="0"/>
|
|
47
47
|
<line num="125" count="1" type="stmt"/>
|
|
48
48
|
<line num="130" count="4" type="stmt"/>
|
|
49
|
-
<line num="136" count="
|
|
50
|
-
<line num="144" count="
|
|
51
|
-
<line num="145" count="
|
|
52
|
-
<line num="146" count="
|
|
53
|
-
<line num="148" count="
|
|
54
|
-
<line num="150" count="
|
|
55
|
-
<line num="165" count="
|
|
56
|
-
<line num="166" count="
|
|
49
|
+
<line num="136" count="20" type="cond" truecount="2" falsecount="0"/>
|
|
50
|
+
<line num="144" count="13" type="stmt"/>
|
|
51
|
+
<line num="145" count="13" type="stmt"/>
|
|
52
|
+
<line num="146" count="13" type="stmt"/>
|
|
53
|
+
<line num="148" count="13" type="stmt"/>
|
|
54
|
+
<line num="150" count="7" type="stmt"/>
|
|
55
|
+
<line num="165" count="10" type="stmt"/>
|
|
56
|
+
<line num="166" count="10" type="cond" truecount="5" falsecount="0"/>
|
|
57
57
|
<line num="167" count="3" type="stmt"/>
|
|
58
|
-
<line num="169" count="
|
|
59
|
-
<line num="170" count="
|
|
60
|
-
<line num="176" count="
|
|
61
|
-
<line num="177" count="
|
|
58
|
+
<line num="169" count="7" type="stmt"/>
|
|
59
|
+
<line num="170" count="7" type="stmt"/>
|
|
60
|
+
<line num="176" count="87" type="stmt"/>
|
|
61
|
+
<line num="177" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
62
62
|
<line num="178" count="6" type="stmt"/>
|
|
63
63
|
<line num="179" count="6" type="stmt"/>
|
|
64
64
|
<line num="180" count="6" type="stmt"/>
|
|
65
|
-
<line num="182" count="
|
|
66
|
-
<line num="183" count="
|
|
67
|
-
<line num="187" count="
|
|
68
|
-
<line num="188" count="
|
|
65
|
+
<line num="182" count="87" type="stmt"/>
|
|
66
|
+
<line num="183" count="87" type="stmt"/>
|
|
67
|
+
<line num="187" count="87" type="stmt"/>
|
|
68
|
+
<line num="188" count="87" type="cond" truecount="2" falsecount="0"/>
|
|
69
69
|
<line num="189" count="6" type="stmt"/>
|
|
70
70
|
<line num="190" count="7" type="stmt"/>
|
|
71
71
|
<line num="191" count="7" type="stmt"/>
|
|
72
|
-
<line num="194" count="
|
|
73
|
-
<line num="195" count="
|
|
74
|
-
<line num="199" count="
|
|
75
|
-
<line num="212" count="
|
|
76
|
-
<line num="214" count="
|
|
77
|
-
<line num="215" count="
|
|
78
|
-
<line num="216" count="
|
|
79
|
-
<line num="217" count="
|
|
80
|
-
<line num="218" count="
|
|
81
|
-
<line num="219" count="
|
|
82
|
-
<line num="220" count="
|
|
83
|
-
<line num="221" count="
|
|
84
|
-
<line num="225" count="
|
|
85
|
-
<line num="231" count="
|
|
72
|
+
<line num="194" count="87" type="stmt"/>
|
|
73
|
+
<line num="195" count="87" type="stmt"/>
|
|
74
|
+
<line num="199" count="91" type="stmt"/>
|
|
75
|
+
<line num="212" count="91" type="stmt"/>
|
|
76
|
+
<line num="214" count="91" type="stmt"/>
|
|
77
|
+
<line num="215" count="91" type="stmt"/>
|
|
78
|
+
<line num="216" count="91" type="stmt"/>
|
|
79
|
+
<line num="217" count="91" type="stmt"/>
|
|
80
|
+
<line num="218" count="91" type="stmt"/>
|
|
81
|
+
<line num="219" count="91" type="stmt"/>
|
|
82
|
+
<line num="220" count="91" type="stmt"/>
|
|
83
|
+
<line num="221" count="91" type="stmt"/>
|
|
84
|
+
<line num="225" count="91" type="stmt"/>
|
|
85
|
+
<line num="231" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
86
86
|
<line num="232" count="15" type="stmt"/>
|
|
87
|
-
<line num="234" count="
|
|
88
|
-
<line num="236" count="
|
|
87
|
+
<line num="234" count="91" type="stmt"/>
|
|
88
|
+
<line num="236" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
89
89
|
<line num="237" count="20" type="stmt"/>
|
|
90
90
|
<line num="238" count="20" type="stmt"/>
|
|
91
91
|
<line num="239" count="29" type="stmt"/>
|
|
92
92
|
<line num="240" count="29" type="stmt"/>
|
|
93
93
|
<line num="241" count="29" type="stmt"/>
|
|
94
94
|
<line num="242" count="29" type="cond" truecount="4" falsecount="0"/>
|
|
95
|
-
<line num="247" count="
|
|
95
|
+
<line num="247" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
96
96
|
<line num="248" count="4" type="stmt"/>
|
|
97
97
|
<line num="249" count="4" type="cond" truecount="1" falsecount="1"/>
|
|
98
98
|
<line num="250" count="4" type="stmt"/>
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
<line num="252" count="6" type="stmt"/>
|
|
101
101
|
<line num="253" count="6" type="stmt"/>
|
|
102
102
|
<line num="254" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
103
|
-
<line num="260" count="
|
|
103
|
+
<line num="260" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
104
104
|
<line num="261" count="6" type="cond" truecount="1" falsecount="3"/>
|
|
105
105
|
<line num="262" count="6" type="cond" truecount="2" falsecount="0"/>
|
|
106
106
|
<line num="263" count="1" type="stmt"/>
|
|
107
107
|
<line num="264" count="1" type="stmt"/>
|
|
108
108
|
<line num="266" count="5" type="stmt"/>
|
|
109
|
-
<line num="271" count="
|
|
109
|
+
<line num="271" count="91" type="cond" truecount="4" falsecount="0"/>
|
|
110
110
|
<line num="272" count="19" type="stmt"/>
|
|
111
111
|
<line num="278" count="57" type="cond" truecount="1" falsecount="1"/>
|
|
112
112
|
<line num="280" count="19" type="stmt"/>
|
|
@@ -121,10 +121,10 @@
|
|
|
121
121
|
<line num="290" count="18" type="stmt"/>
|
|
122
122
|
<line num="291" count="18" type="stmt"/>
|
|
123
123
|
<line num="292" count="60" type="stmt"/>
|
|
124
|
-
<line num="298" count="
|
|
125
|
-
<line num="299" count="
|
|
126
|
-
<line num="300" count="
|
|
127
|
-
<line num="301" count="
|
|
124
|
+
<line num="298" count="91" type="stmt"/>
|
|
125
|
+
<line num="299" count="91" type="stmt"/>
|
|
126
|
+
<line num="300" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
127
|
+
<line num="301" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
128
128
|
<line num="302" count="10" type="stmt"/>
|
|
129
129
|
<line num="303" count="10" type="stmt"/>
|
|
130
130
|
<line num="304" count="10" type="stmt"/>
|
|
@@ -135,28 +135,28 @@
|
|
|
135
135
|
<line num="311" count="1" type="stmt"/>
|
|
136
136
|
<line num="312" count="1" type="stmt"/>
|
|
137
137
|
<line num="313" count="1" type="stmt"/>
|
|
138
|
-
<line num="318" count="
|
|
139
|
-
<line num="319" count="
|
|
138
|
+
<line num="318" count="91" type="stmt"/>
|
|
139
|
+
<line num="319" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
140
140
|
<line num="320" count="3" type="stmt"/>
|
|
141
141
|
<line num="321" count="3" type="stmt"/>
|
|
142
142
|
<line num="322" count="3" type="stmt"/>
|
|
143
143
|
<line num="323" count="8" type="stmt"/>
|
|
144
|
-
<line num="327" count="
|
|
145
|
-
<line num="328" count="
|
|
146
|
-
<line num="333" count="
|
|
147
|
-
<line num="334" count="
|
|
148
|
-
<line num="339" count="
|
|
149
|
-
<line num="340" count="
|
|
150
|
-
<line num="341" count="
|
|
151
|
-
<line num="342" count="
|
|
152
|
-
<line num="343" count="
|
|
144
|
+
<line num="327" count="91" type="stmt"/>
|
|
145
|
+
<line num="328" count="91" type="stmt"/>
|
|
146
|
+
<line num="333" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
147
|
+
<line num="334" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
148
|
+
<line num="339" count="91" type="stmt"/>
|
|
149
|
+
<line num="340" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
150
|
+
<line num="341" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
151
|
+
<line num="342" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
152
|
+
<line num="343" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
153
153
|
<line num="344" count="1" type="stmt"/>
|
|
154
154
|
<line num="345" count="1" type="stmt"/>
|
|
155
155
|
<line num="346" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
156
156
|
<line num="347" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
157
157
|
<line num="348" count="2" type="stmt"/>
|
|
158
158
|
<line num="350" count="1" type="stmt"/>
|
|
159
|
-
<line num="352" count="
|
|
159
|
+
<line num="352" count="91" type="cond" truecount="2" falsecount="0"/>
|
|
160
160
|
<line num="359" count="6" type="stmt"/>
|
|
161
161
|
<line num="360" count="6" type="cond" truecount="4" falsecount="0"/>
|
|
162
162
|
<line num="361" count="4" type="stmt"/>
|
|
@@ -170,11 +170,11 @@
|
|
|
170
170
|
<line num="376" count="2" type="cond" truecount="4" falsecount="0"/>
|
|
171
171
|
<line num="377" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
172
172
|
<line num="378" count="0" type="stmt"/>
|
|
173
|
-
<line num="384" count="
|
|
174
|
-
<line num="385" count="
|
|
173
|
+
<line num="384" count="87" type="stmt"/>
|
|
174
|
+
<line num="385" count="87" type="stmt"/>
|
|
175
175
|
<line num="386" count="8" type="stmt"/>
|
|
176
176
|
<line num="387" count="9" type="stmt"/>
|
|
177
|
-
<line num="390" count="
|
|
177
|
+
<line num="390" count="87" type="stmt"/>
|
|
178
178
|
<line num="395" count="9" type="stmt"/>
|
|
179
179
|
<line num="396" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
180
180
|
<line num="397" count="1" type="stmt"/>
|
|
@@ -267,69 +267,23 @@
|
|
|
267
267
|
<line num="596" count="20" type="cond" truecount="2" falsecount="0"/>
|
|
268
268
|
<line num="597" count="19" type="stmt"/>
|
|
269
269
|
<line num="600" count="15" type="stmt"/>
|
|
270
|
-
<line num="607" count="
|
|
270
|
+
<line num="607" count="91" type="stmt"/>
|
|
271
271
|
<line num="612" count="7" type="stmt"/>
|
|
272
272
|
<line num="616" count="7" type="cond" truecount="1" falsecount="1"/>
|
|
273
|
-
<line num="621" count="
|
|
274
|
-
<line num="628" count="
|
|
275
|
-
<line num="633" count="
|
|
276
|
-
<line num="638" count="
|
|
277
|
-
<line num="646" count="
|
|
278
|
-
<line num="647" count="
|
|
279
|
-
<line num="649" count="
|
|
280
|
-
</file>
|
|
281
|
-
<file name="index.ts" path="/home/runner/work/ContractKit/ContractKit/packages/plugin-bruno/src/index.ts">
|
|
282
|
-
<metrics statements="43" coveredstatements="16" conditionals="34" coveredconditionals="15" methods="5" coveredmethods="4"/>
|
|
283
|
-
<line num="41" count="1" type="stmt"/>
|
|
284
|
-
<line num="45" count="0" type="stmt"/>
|
|
285
|
-
<line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
286
|
-
<line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
287
|
-
<line num="48" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
288
|
-
<line num="50" count="0" type="stmt"/>
|
|
289
|
-
<line num="52" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
290
|
-
<line num="53" count="0" type="stmt"/>
|
|
291
|
-
<line num="60" count="0" type="stmt"/>
|
|
292
|
-
<line num="61" count="0" type="stmt"/>
|
|
293
|
-
<line num="85" count="3" type="stmt"/>
|
|
294
|
-
<line num="89" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
295
|
-
<line num="90" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
296
|
-
<line num="91" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
297
|
-
<line num="93" count="3" type="stmt"/>
|
|
298
|
-
<line num="95" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
299
|
-
<line num="96" count="3" type="stmt"/>
|
|
300
|
-
<line num="102" count="3" type="stmt"/>
|
|
301
|
-
<line num="103" count="15" type="stmt"/>
|
|
302
|
-
<line num="110" count="15" type="cond" truecount="4" falsecount="0"/>
|
|
303
|
-
<line num="111" count="8" type="stmt"/>
|
|
304
|
-
<line num="112" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
305
|
-
<line num="113" count="1" type="stmt"/>
|
|
306
|
-
<line num="124" count="3" type="stmt"/>
|
|
307
|
-
<line num="125" count="3" type="cond" truecount="1" falsecount="1"/>
|
|
308
|
-
<line num="128" count="0" type="stmt"/>
|
|
309
|
-
<line num="129" count="0" type="stmt"/>
|
|
310
|
-
<line num="131" count="0" type="stmt"/>
|
|
311
|
-
<line num="134" count="0" type="stmt"/>
|
|
312
|
-
<line num="135" count="0" type="stmt"/>
|
|
313
|
-
<line num="136" count="0" type="stmt"/>
|
|
314
|
-
<line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
315
|
-
<line num="138" count="0" type="stmt"/>
|
|
316
|
-
<line num="139" count="0" type="stmt"/>
|
|
317
|
-
<line num="144" count="0" type="stmt"/>
|
|
318
|
-
<line num="145" count="0" type="stmt"/>
|
|
319
|
-
<line num="146" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
320
|
-
<line num="147" count="0" type="stmt"/>
|
|
321
|
-
<line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
322
|
-
<line num="149" count="0" type="stmt"/>
|
|
323
|
-
<line num="150" count="0" type="stmt"/>
|
|
324
|
-
<line num="152" count="0" type="stmt"/>
|
|
325
|
-
<line num="155" count="0" type="stmt"/>
|
|
273
|
+
<line num="621" count="94" type="stmt"/>
|
|
274
|
+
<line num="628" count="94" type="cond" truecount="2" falsecount="0"/>
|
|
275
|
+
<line num="633" count="91" type="stmt"/>
|
|
276
|
+
<line num="638" count="86" type="stmt"/>
|
|
277
|
+
<line num="646" count="360" type="cond" truecount="4" falsecount="0"/>
|
|
278
|
+
<line num="647" count="105" type="stmt"/>
|
|
279
|
+
<line num="649" count="255" type="stmt"/>
|
|
326
280
|
</file>
|
|
327
281
|
</package>
|
|
328
282
|
<package name="tests">
|
|
329
283
|
<metrics statements="38" coveredstatements="30" conditionals="31" coveredconditionals="24" methods="25" coveredmethods="19"/>
|
|
330
284
|
<file name="helpers.ts" path="/home/runner/work/ContractKit/ContractKit/packages/plugin-bruno/tests/helpers.ts">
|
|
331
285
|
<metrics statements="38" coveredstatements="30" conditionals="31" coveredconditionals="24" methods="25" coveredmethods="19"/>
|
|
332
|
-
<line num="31" count="
|
|
286
|
+
<line num="31" count="244" type="stmt"/>
|
|
333
287
|
<line num="35" count="48" type="stmt"/>
|
|
334
288
|
<line num="39" count="1" type="stmt"/>
|
|
335
289
|
<line num="43" count="0" type="stmt"/>
|
|
@@ -360,13 +314,13 @@
|
|
|
360
314
|
<line num="143" count="18" type="cond" truecount="1" falsecount="1"/>
|
|
361
315
|
<line num="144" count="18" type="cond" truecount="3" falsecount="2"/>
|
|
362
316
|
<line num="145" count="0" type="stmt"/>
|
|
363
|
-
<line num="149" count="
|
|
364
|
-
<line num="150" count="
|
|
365
|
-
<line num="151" count="
|
|
366
|
-
<line num="152" count="
|
|
367
|
-
<line num="167" count="
|
|
368
|
-
<line num="168" count="
|
|
369
|
-
<line num="172" count="
|
|
317
|
+
<line num="149" count="92" type="stmt"/>
|
|
318
|
+
<line num="150" count="92" type="cond" truecount="2" falsecount="0"/>
|
|
319
|
+
<line num="151" count="92" type="cond" truecount="2" falsecount="0"/>
|
|
320
|
+
<line num="152" count="92" type="stmt"/>
|
|
321
|
+
<line num="167" count="88" type="cond" truecount="2" falsecount="0"/>
|
|
322
|
+
<line num="168" count="88" type="stmt"/>
|
|
323
|
+
<line num="172" count="87" type="stmt"/>
|
|
370
324
|
</file>
|
|
371
325
|
</package>
|
|
372
326
|
</project>
|