pure-orm 4.0.1 → 4.0.3
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/.eslintrc.json +20 -10
- package/babel.config.js +1 -4
- package/coverage/clover.xml +478 -399
- package/coverage/coverage-final.json +10 -4
- package/coverage/lcov-report/dist/src/core.js.html +152 -131
- package/coverage/lcov-report/dist/src/driver-integrations/index.html +1 -1
- package/coverage/lcov-report/dist/src/driver-integrations/pgp.js.html +1 -1
- package/coverage/lcov-report/dist/src/index.html +18 -18
- package/coverage/lcov-report/dist/src/index.js.html +1 -1
- package/coverage/lcov-report/dist/src/orm.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/article.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/article_tag.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/person.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/blog/models/tag.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel-event.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/five/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/fourteen/entities.js.html +87 -0
- package/coverage/lcov-report/dist/test-utils/fourteen/index.html +97 -0
- package/coverage/lcov-report/dist/test-utils/fourteen/models/customer.js.html +159 -0
- package/coverage/lcov-report/dist/test-utils/fourteen/models/index.html +110 -0
- package/coverage/lcov-report/dist/test-utils/fourteen/models/person.js.html +138 -0
- package/coverage/lcov-report/dist/test-utils/nine/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/nine/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/nine/models/feature-switch.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/nine/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order/models/utm-source.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/actual-product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/color.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/customer.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/gender.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/inventory-level.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel-event.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/physical-address.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product-variant-image.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/refund.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/shipment-actual-product-variant.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/shipment.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/size.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/utm-medium.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/order-more/models/utm-source.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/customer.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/order.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/parcel-line-item.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/six/models/parcel.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/audience.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/brand.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/category.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/member.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/passion.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/product.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/recommendation-audience.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/thirteen/models/recommendation.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/three/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/three/results.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/entities.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/models/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/models/member.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/twelve/models/prompt.js.html +1 -1
- package/coverage/lcov-report/dist/test-utils/two/index.html +1 -1
- package/coverage/lcov-report/dist/test-utils/two/results.js.html +1 -1
- package/coverage/lcov-report/index.html +77 -25
- package/coverage/lcov-report/src/core.ts.html +162 -141
- package/coverage/lcov-report/src/driver-integrations/index.html +1 -1
- package/coverage/lcov-report/src/driver-integrations/pgp.ts.html +6 -6
- package/coverage/lcov-report/src/index.html +18 -18
- package/coverage/lcov-report/src/index.ts.html +1 -1
- package/coverage/lcov-report/src/orm.ts.html +45 -18
- package/coverage/lcov-report/test-utils/blog/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/index.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/article.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/article_tag.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/person.ts.html +1 -1
- package/coverage/lcov-report/test-utils/blog/models/tag.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/index.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel-event.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/five/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/fourteen/entities.ts.html +78 -0
- package/coverage/lcov-report/test-utils/fourteen/index.html +97 -0
- package/coverage/lcov-report/test-utils/fourteen/models/customer.ts.html +177 -0
- package/coverage/lcov-report/test-utils/fourteen/models/index.html +110 -0
- package/coverage/lcov-report/test-utils/fourteen/models/person.ts.html +150 -0
- package/coverage/lcov-report/test-utils/nine/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/nine/index.html +1 -1
- package/coverage/lcov-report/test-utils/nine/models/feature-switch.ts.html +1 -1
- package/coverage/lcov-report/test-utils/nine/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/order/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/index.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order/models/utm-source.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/index.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/actual-product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/color.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/customer.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/gender.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/inventory-level.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel-event.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/physical-address.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product-variant-image.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/refund.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/shipment-actual-product-variant.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/shipment.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/size.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/utm-medium.ts.html +1 -1
- package/coverage/lcov-report/test-utils/order-more/models/utm-source.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/index.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/customer.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/order.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/parcel-line-item.ts.html +1 -1
- package/coverage/lcov-report/test-utils/six/models/parcel.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/index.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/audience.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/brand.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/category.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/member.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/passion.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/product.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/recommendation-audience.ts.html +1 -1
- package/coverage/lcov-report/test-utils/thirteen/models/recommendation.ts.html +1 -1
- package/coverage/lcov-report/test-utils/three/index.html +1 -1
- package/coverage/lcov-report/test-utils/three/results.js.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/entities.ts.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/index.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/models/index.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/models/member.ts.html +1 -1
- package/coverage/lcov-report/test-utils/twelve/models/prompt.ts.html +1 -1
- package/coverage/lcov-report/test-utils/two/index.html +1 -1
- package/coverage/lcov-report/test-utils/two/results.js.html +1 -1
- package/coverage/lcov.info +882 -747
- package/dist/example/data-access/person.d.ts +1 -1
- package/dist/src/core.d.ts +7 -7
- package/dist/src/core.js +11 -4
- package/dist/src/core.spec.js +15 -0
- package/dist/src/driver-integrations/index.d.ts +5 -5
- package/dist/src/orm.d.ts +8 -8
- package/dist/test-utils/fourteen/entities.d.ts +6 -0
- package/dist/test-utils/fourteen/entities.js +6 -0
- package/dist/test-utils/fourteen/entities.ts +3 -0
- package/dist/test-utils/fourteen/models/customer.d.ts +19 -0
- package/dist/test-utils/fourteen/models/customer.js +30 -0
- package/dist/test-utils/fourteen/models/customer.ts +36 -0
- package/dist/test-utils/fourteen/models/person.d.ts +17 -0
- package/dist/test-utils/fourteen/models/person.js +23 -0
- package/dist/test-utils/fourteen/models/person.ts +27 -0
- package/dist/test-utils/fourteen/results.json +8 -0
- package/example/data-access/person.ts +1 -1
- package/package.json +5 -4
- package/src/core.spec.ts +15 -0
- package/src/core.ts +15 -8
- package/src/driver-integrations/index.ts +5 -5
- package/src/driver-integrations/pgp.ts +5 -5
- package/src/orm.ts +25 -16
- package/test-utils/fourteen/entities.ts +3 -0
- package/test-utils/fourteen/models/customer.ts +36 -0
- package/test-utils/fourteen/models/person.ts +27 -0
- package/test-utils/fourteen/results.json +8 -0
|
@@ -255,7 +255,7 @@ export const createForPGP = ({
|
|
|
255
255
|
query: string,
|
|
256
256
|
values?: object,
|
|
257
257
|
errorHandler = <span class="branch-0 cbranch-no" title="branch not covered" >defaultErrorHandler</span>
|
|
258
|
-
): T => {
|
|
258
|
+
): Promise<T> => {
|
|
259
259
|
<span class="cstat-no" title="statement not covered" > return db</span>
|
|
260
260
|
.many(query, values)
|
|
261
261
|
.then(<span class="fstat-no" title="function not covered" >(r</span>ows: any) => <span class="cstat-no" title="statement not covered" >core.createOneFromDatabase(rows))</span>
|
|
@@ -266,7 +266,7 @@ export const createForPGP = ({
|
|
|
266
266
|
query: string,
|
|
267
267
|
values?: object,
|
|
268
268
|
errorHandler = <span class="branch-0 cbranch-no" title="branch not covered" >defaultErrorHandler</span>
|
|
269
|
-
): T | void => {
|
|
269
|
+
): Promise<T | void> => {
|
|
270
270
|
<span class="cstat-no" title="statement not covered" > return db</span>
|
|
271
271
|
.any(query, values)
|
|
272
272
|
.then(<span class="fstat-no" title="function not covered" >(r</span>ows: any) => <span class="cstat-no" title="statement not covered" >core.createOneOrNoneFromDatabase(rows))</span>
|
|
@@ -277,7 +277,7 @@ export const createForPGP = ({
|
|
|
277
277
|
query: string,
|
|
278
278
|
values?: object,
|
|
279
279
|
errorHandler = <span class="branch-0 cbranch-no" title="branch not covered" >defaultErrorHandler</span>
|
|
280
|
-
): T => {
|
|
280
|
+
): Promise<T> => {
|
|
281
281
|
<span class="cstat-no" title="statement not covered" > return db</span>
|
|
282
282
|
.any(query, values)
|
|
283
283
|
.then(<span class="fstat-no" title="function not covered" >(r</span>ows: any) => <span class="cstat-no" title="statement not covered" >core.createManyFromDatabase(rows))</span>
|
|
@@ -288,7 +288,7 @@ export const createForPGP = ({
|
|
|
288
288
|
query: string,
|
|
289
289
|
values?: object,
|
|
290
290
|
errorHandler = <span class="branch-0 cbranch-no" title="branch not covered" >defaultErrorHandler</span>
|
|
291
|
-
): T | void => {
|
|
291
|
+
): Promise<T | void> => {
|
|
292
292
|
<span class="cstat-no" title="statement not covered" > return db</span>
|
|
293
293
|
.result(query, values)
|
|
294
294
|
.then(<span class="fstat-no" title="function not covered" >(r</span>esult: any) =>
|
|
@@ -304,7 +304,7 @@ export const createForPGP = ({
|
|
|
304
304
|
query: string,
|
|
305
305
|
values?: object,
|
|
306
306
|
errorHandler = <span class="branch-0 cbranch-no" title="branch not covered" >defaultErrorHandler</span>
|
|
307
|
-
): void => {
|
|
307
|
+
): Promise<void> => {
|
|
308
308
|
<span class="cstat-no" title="statement not covered" > return db</span>
|
|
309
309
|
.none(query, values)
|
|
310
310
|
.then(<span class="fstat-no" title="function not covered" >()</span> => <span class="cstat-no" title="statement not covered" >null)</span>
|
|
@@ -328,7 +328,7 @@ export const createForPGP = ({
|
|
|
328
328
|
</div><!-- /wrapper -->
|
|
329
329
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
330
330
|
Code coverage
|
|
331
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
331
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
332
332
|
</div>
|
|
333
333
|
</div>
|
|
334
334
|
<script src="../../prettify.js"></script>
|
|
@@ -20,24 +20,24 @@
|
|
|
20
20
|
</h1>
|
|
21
21
|
<div class='clearfix'>
|
|
22
22
|
<div class='fl pad1y space-right2'>
|
|
23
|
-
<span class="strong">
|
|
23
|
+
<span class="strong">85.14% </span>
|
|
24
24
|
<span class="quiet">Statements</span>
|
|
25
|
-
<span class='fraction'>
|
|
25
|
+
<span class='fraction'>235/276</span>
|
|
26
26
|
</div>
|
|
27
27
|
<div class='fl pad1y space-right2'>
|
|
28
|
-
<span class="strong">86.
|
|
28
|
+
<span class="strong">86.84% </span>
|
|
29
29
|
<span class="quiet">Branches</span>
|
|
30
|
-
<span class='fraction'>
|
|
30
|
+
<span class='fraction'>99/114</span>
|
|
31
31
|
</div>
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">86.
|
|
33
|
+
<span class="strong">86.36% </span>
|
|
34
34
|
<span class="quiet">Functions</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>76/88</span>
|
|
36
36
|
</div>
|
|
37
37
|
<div class='fl pad1y space-right2'>
|
|
38
|
-
<span class="strong">
|
|
38
|
+
<span class="strong">85.13% </span>
|
|
39
39
|
<span class="quiet">Lines</span>
|
|
40
|
-
<span class='fraction'>
|
|
40
|
+
<span class='fraction'>229/269</span>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
<p class="quiet">
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
</thead>
|
|
64
64
|
<tbody><tr>
|
|
65
65
|
<td class="file high" data-value="core.ts"><a href="core.ts.html">core.ts</a></td>
|
|
66
|
-
<td data-value="95.
|
|
67
|
-
<td data-value="95.
|
|
68
|
-
<td data-value="
|
|
69
|
-
<td data-value="
|
|
70
|
-
<td data-value="
|
|
71
|
-
<td data-value="
|
|
72
|
-
<td data-value="
|
|
73
|
-
<td data-value="95.
|
|
74
|
-
<td data-value="
|
|
66
|
+
<td data-value="95.16" class="pic high"><div class="chart"><div class="cover-fill" style="width: 95%;"></div><div class="cover-empty" style="width:5%;"></div></div></td>
|
|
67
|
+
<td data-value="95.16" class="pct high">95.16%</td>
|
|
68
|
+
<td data-value="186" class="abs high">177/186</td>
|
|
69
|
+
<td data-value="88.12" class="pct high">88.12%</td>
|
|
70
|
+
<td data-value="101" class="abs high">89/101</td>
|
|
71
|
+
<td data-value="98" class="pct high">98%</td>
|
|
72
|
+
<td data-value="50" class="abs high">49/50</td>
|
|
73
|
+
<td data-value="95.53" class="pct high">95.53%</td>
|
|
74
|
+
<td data-value="179" class="abs high">171/179</td>
|
|
75
75
|
</tr>
|
|
76
76
|
|
|
77
77
|
<tr>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
</div><!-- /wrapper -->
|
|
107
107
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
108
108
|
Code coverage
|
|
109
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
109
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
<script src="../prettify.js"></script>
|
|
@@ -82,7 +82,7 @@ export { create, ICreateOptions, IPureORM } from './orm';
|
|
|
82
82
|
</div><!-- /wrapper -->
|
|
83
83
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
84
84
|
Code coverage
|
|
85
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
85
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
86
86
|
</div>
|
|
87
87
|
</div>
|
|
88
88
|
<script src="../prettify.js"></script>
|
|
@@ -383,7 +383,18 @@
|
|
|
383
383
|
<a name='L335'></a><a href='#L335'>335</a>
|
|
384
384
|
<a name='L336'></a><a href='#L336'>336</a>
|
|
385
385
|
<a name='L337'></a><a href='#L337'>337</a>
|
|
386
|
-
<a name='L338'></a><a href='#L338'>338</a
|
|
386
|
+
<a name='L338'></a><a href='#L338'>338</a>
|
|
387
|
+
<a name='L339'></a><a href='#L339'>339</a>
|
|
388
|
+
<a name='L340'></a><a href='#L340'>340</a>
|
|
389
|
+
<a name='L341'></a><a href='#L341'>341</a>
|
|
390
|
+
<a name='L342'></a><a href='#L342'>342</a>
|
|
391
|
+
<a name='L343'></a><a href='#L343'>343</a>
|
|
392
|
+
<a name='L344'></a><a href='#L344'>344</a>
|
|
393
|
+
<a name='L345'></a><a href='#L345'>345</a>
|
|
394
|
+
<a name='L346'></a><a href='#L346'>346</a>
|
|
395
|
+
<a name='L347'></a><a href='#L347'>347</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
396
|
+
<span class="cline-any cline-neutral"> </span>
|
|
397
|
+
<span class="cline-any cline-neutral"> </span>
|
|
387
398
|
<span class="cline-any cline-neutral"> </span>
|
|
388
399
|
<span class="cline-any cline-neutral"> </span>
|
|
389
400
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -627,6 +638,9 @@
|
|
|
627
638
|
<span class="cline-any cline-neutral"> </span>
|
|
628
639
|
<span class="cline-any cline-neutral"> </span>
|
|
629
640
|
<span class="cline-any cline-yes">6x</span>
|
|
641
|
+
<span class="cline-any cline-neutral"> </span>
|
|
642
|
+
<span class="cline-any cline-neutral"> </span>
|
|
643
|
+
<span class="cline-any cline-neutral"> </span>
|
|
630
644
|
<span class="cline-any cline-no"> </span>
|
|
631
645
|
<span class="cline-any cline-no"> </span>
|
|
632
646
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -669,6 +683,8 @@
|
|
|
669
683
|
<span class="cline-any cline-neutral"> </span>
|
|
670
684
|
<span class="cline-any cline-neutral"> </span>
|
|
671
685
|
<span class="cline-any cline-yes">6x</span>
|
|
686
|
+
<span class="cline-any cline-neutral"> </span>
|
|
687
|
+
<span class="cline-any cline-neutral"> </span>
|
|
672
688
|
<span class="cline-any cline-no"> </span>
|
|
673
689
|
<span class="cline-any cline-no"> </span>
|
|
674
690
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -691,6 +707,8 @@
|
|
|
691
707
|
<span class="cline-any cline-neutral"> </span>
|
|
692
708
|
<span class="cline-any cline-neutral"> </span>
|
|
693
709
|
<span class="cline-any cline-yes">6x</span>
|
|
710
|
+
<span class="cline-any cline-neutral"> </span>
|
|
711
|
+
<span class="cline-any cline-neutral"> </span>
|
|
694
712
|
<span class="cline-any cline-no"> </span>
|
|
695
713
|
<span class="cline-any cline-no"> </span>
|
|
696
714
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -742,14 +760,16 @@ export interface IPureORM extends ICoreIntegratedDriver {
|
|
|
742
760
|
* if you want to write these in your data access layer yourself.
|
|
743
761
|
*/
|
|
744
762
|
|
|
745
|
-
getMatching: <T extends IModel>(model: T) => T
|
|
746
|
-
getOneOrNoneMatching: <T extends IModel>(model: T) => T | void
|
|
747
|
-
getAnyMatching: <T extends ICollection<IModel>>(
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
763
|
+
getMatching: <T extends IModel>(model: T) => Promise<T>;
|
|
764
|
+
getOneOrNoneMatching: <T extends IModel>(model: T) => Promise<T | void>;
|
|
765
|
+
getAnyMatching: <T extends ICollection<IModel>>(
|
|
766
|
+
model: IModel
|
|
767
|
+
) => Promise<T | void>;
|
|
768
|
+
getAllMatching: <T extends ICollection<IModel>>(model: IModel) => Promise<T>;
|
|
769
|
+
create: <T extends IModel>(model: T) => Promise<T>;
|
|
770
|
+
update: <T extends IModel>(model: T, options: { on: string }) => Promise<T>;
|
|
771
|
+
delete: <T extends IModel>(model: T) => Promise<void>;
|
|
772
|
+
deleteMatching: <T extends IModel>(model: T) => Promise<void>;
|
|
753
773
|
|
|
754
774
|
/* ------------------------------------------------------------------------*/
|
|
755
775
|
/* Helper Utility Functions -----------------------------------------------*/
|
|
@@ -952,7 +972,7 @@ export const create = ({
|
|
|
952
972
|
/* ------------------------------------------------------------------------*/
|
|
953
973
|
|
|
954
974
|
// Standard create
|
|
955
|
-
const create = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): T => {
|
|
975
|
+
const create = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): Promise<T> => {
|
|
956
976
|
const { columns, values, valuesVar } = <span class="cstat-no" title="statement not covered" >getSqlInsertParts(model);</span>
|
|
957
977
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
958
978
|
INSERT INTO "${orm.getEntityByModel(model).tableName}" ( ${columns} )
|
|
@@ -963,7 +983,10 @@ export const create = ({
|
|
|
963
983
|
};
|
|
964
984
|
|
|
965
985
|
// Standard update
|
|
966
|
-
const update = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(
|
|
986
|
+
const update = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(
|
|
987
|
+
model: T,
|
|
988
|
+
{ on = <span class="branch-0 cbranch-no" title="branch not covered" >'id' </span>} = <span class="branch-0 cbranch-no" title="branch not covered" >{}</span>
|
|
989
|
+
): Promise<T> => {
|
|
967
990
|
const { clause, idVar, values } = <span class="cstat-no" title="statement not covered" >getSqlUpdateParts(model, on);</span>
|
|
968
991
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
969
992
|
UPDATE "${orm.getEntityByModel(model).tableName}"
|
|
@@ -977,7 +1000,7 @@ export const create = ({
|
|
|
977
1000
|
};
|
|
978
1001
|
|
|
979
1002
|
// Standard delete
|
|
980
|
-
const _delete = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): void => {
|
|
1003
|
+
const _delete = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): Promise<void> => {
|
|
981
1004
|
const id = <span class="cstat-no" title="statement not covered" >(model as any).id;</span>
|
|
982
1005
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
983
1006
|
DELETE FROM "${orm.getEntityByModel(model).tableName}"
|
|
@@ -986,7 +1009,7 @@ export const create = ({
|
|
|
986
1009
|
<span class="cstat-no" title="statement not covered" > return orm.none(query, { id });</span>
|
|
987
1010
|
};
|
|
988
1011
|
|
|
989
|
-
const deleteMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T) => {
|
|
1012
|
+
const deleteMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): Promise<void> => {
|
|
990
1013
|
const { whereClause, values } = <span class="cstat-no" title="statement not covered" >getMatchingParts(model);</span>
|
|
991
1014
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
992
1015
|
DELETE FROM "${orm.getEntityByModel(model).tableName}"
|
|
@@ -995,7 +1018,7 @@ export const create = ({
|
|
|
995
1018
|
<span class="cstat-no" title="statement not covered" > return orm.none(query, values);</span>
|
|
996
1019
|
};
|
|
997
1020
|
|
|
998
|
-
const getMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): T => {
|
|
1021
|
+
const getMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(model: T): Promise<T> => {
|
|
999
1022
|
const { whereClause, values } = <span class="cstat-no" title="statement not covered" >getMatchingParts(model);</span>
|
|
1000
1023
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
1001
1024
|
SELECT ${orm.getEntityByModel(model).selectColumnsClause}
|
|
@@ -1005,7 +1028,9 @@ export const create = ({
|
|
|
1005
1028
|
<span class="cstat-no" title="statement not covered" > return orm.one<T>(query, values);</span>
|
|
1006
1029
|
};
|
|
1007
1030
|
|
|
1008
|
-
const getOneOrNoneMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(
|
|
1031
|
+
const getOneOrNoneMatching = <span class="fstat-no" title="function not covered" ><T</span> extends IModel>(
|
|
1032
|
+
model: T
|
|
1033
|
+
): Promise<T | void> => {
|
|
1009
1034
|
const { whereClause, values } = <span class="cstat-no" title="statement not covered" >getMatchingParts(model);</span>
|
|
1010
1035
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
1011
1036
|
SELECT ${orm.getEntityByModel(model).selectColumnsClause}
|
|
@@ -1017,7 +1042,7 @@ export const create = ({
|
|
|
1017
1042
|
|
|
1018
1043
|
const getAnyMatching = <span class="fstat-no" title="function not covered" ><T</span> extends ICollection<IModel>>(
|
|
1019
1044
|
model: IModel
|
|
1020
|
-
): T | void => {
|
|
1045
|
+
): Promise<T | void> => {
|
|
1021
1046
|
const { whereClause, values } = <span class="cstat-no" title="statement not covered" >getMatchingParts(model);</span>
|
|
1022
1047
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
1023
1048
|
SELECT ${orm.getEntityByModel(model).selectColumnsClause}
|
|
@@ -1027,7 +1052,9 @@ export const create = ({
|
|
|
1027
1052
|
<span class="cstat-no" title="statement not covered" > return orm.any<T>(query, values);</span>
|
|
1028
1053
|
};
|
|
1029
1054
|
|
|
1030
|
-
const getAllMatching = <span class="fstat-no" title="function not covered" ><T</span> extends ICollection<IModel>>(
|
|
1055
|
+
const getAllMatching = <span class="fstat-no" title="function not covered" ><T</span> extends ICollection<IModel>>(
|
|
1056
|
+
model: IModel
|
|
1057
|
+
): Promise<T> => {
|
|
1031
1058
|
const { whereClause, values } = <span class="cstat-no" title="statement not covered" >getMatchingParts(model);</span>
|
|
1032
1059
|
const query = <span class="cstat-no" title="statement not covered" >`</span>
|
|
1033
1060
|
SELECT ${orm.getEntityByModel(model).selectColumnsClause}
|
|
@@ -1063,7 +1090,7 @@ export const create = ({
|
|
|
1063
1090
|
</div><!-- /wrapper -->
|
|
1064
1091
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1065
1092
|
Code coverage
|
|
1066
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
1093
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
1067
1094
|
</div>
|
|
1068
1095
|
</div>
|
|
1069
1096
|
<script src="../prettify.js"></script>
|
|
@@ -85,7 +85,7 @@ export const entities = [
|
|
|
85
85
|
</div><!-- /wrapper -->
|
|
86
86
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
87
87
|
Code coverage
|
|
88
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
88
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
<script src="../../prettify.js"></script>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</div><!-- /wrapper -->
|
|
81
81
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
82
82
|
Code coverage
|
|
83
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
83
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
<script src="../../prettify.js"></script>
|
|
@@ -247,7 +247,7 @@ export const articleEntity = {
|
|
|
247
247
|
</div><!-- /wrapper -->
|
|
248
248
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
249
249
|
Code coverage
|
|
250
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
250
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
251
251
|
</div>
|
|
252
252
|
</div>
|
|
253
253
|
<script src="../../../prettify.js"></script>
|
|
@@ -175,7 +175,7 @@ export const articleTagEntity = {
|
|
|
175
175
|
</div><!-- /wrapper -->
|
|
176
176
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
177
|
Code coverage
|
|
178
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
178
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
<script src="../../../prettify.js"></script>
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
</div><!-- /wrapper -->
|
|
120
120
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
121
121
|
Code coverage
|
|
122
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
122
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
123
123
|
</div>
|
|
124
124
|
</div>
|
|
125
125
|
<script src="../../../prettify.js"></script>
|
|
@@ -286,7 +286,7 @@ export const personEntity = {
|
|
|
286
286
|
</div><!-- /wrapper -->
|
|
287
287
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
288
288
|
Code coverage
|
|
289
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
289
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
290
290
|
</div>
|
|
291
291
|
</div>
|
|
292
292
|
<script src="../../../prettify.js"></script>
|
|
@@ -148,7 +148,7 @@ export const tagEntity = {
|
|
|
148
148
|
</div><!-- /wrapper -->
|
|
149
149
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
150
150
|
Code coverage
|
|
151
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
151
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
152
152
|
</div>
|
|
153
153
|
</div>
|
|
154
154
|
<script src="../../../prettify.js"></script>
|
|
@@ -88,7 +88,7 @@ export const entities = [
|
|
|
88
88
|
</div><!-- /wrapper -->
|
|
89
89
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
90
90
|
Code coverage
|
|
91
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
91
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
92
92
|
</div>
|
|
93
93
|
</div>
|
|
94
94
|
<script src="../../prettify.js"></script>
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
</div><!-- /wrapper -->
|
|
81
81
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
82
82
|
Code coverage
|
|
83
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
83
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
86
86
|
<script src="../../prettify.js"></script>
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
</div><!-- /wrapper -->
|
|
133
133
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
134
134
|
Code coverage
|
|
135
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
135
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
136
136
|
</div>
|
|
137
137
|
</div>
|
|
138
138
|
<script src="../../../prettify.js"></script>
|
|
@@ -157,7 +157,7 @@ export const lineItemEntity = {
|
|
|
157
157
|
</div><!-- /wrapper -->
|
|
158
158
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
159
159
|
Code coverage
|
|
160
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
160
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
161
161
|
</div>
|
|
162
162
|
</div>
|
|
163
163
|
<script src="../../../prettify.js"></script>
|
|
@@ -139,7 +139,7 @@ export const orderEntity = {
|
|
|
139
139
|
</div><!-- /wrapper -->
|
|
140
140
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
141
141
|
Code coverage
|
|
142
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
142
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
143
143
|
</div>
|
|
144
144
|
</div>
|
|
145
145
|
<script src="../../../prettify.js"></script>
|
|
@@ -175,7 +175,7 @@ export const parcelEventEntity = {
|
|
|
175
175
|
</div><!-- /wrapper -->
|
|
176
176
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
177
|
Code coverage
|
|
178
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
178
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
<script src="../../../prettify.js"></script>
|
|
@@ -175,7 +175,7 @@ export const parcelLineItemEntity = {
|
|
|
175
175
|
</div><!-- /wrapper -->
|
|
176
176
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
177
177
|
Code coverage
|
|
178
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
178
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
179
179
|
</div>
|
|
180
180
|
</div>
|
|
181
181
|
<script src="../../../prettify.js"></script>
|
|
@@ -133,7 +133,7 @@ export const parcelEntity = {
|
|
|
133
133
|
</div><!-- /wrapper -->
|
|
134
134
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
135
135
|
Code coverage
|
|
136
|
-
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at
|
|
136
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
137
137
|
</div>
|
|
138
138
|
</div>
|
|
139
139
|
<script src="../../../prettify.js"></script>
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Code coverage report for test-utils/fourteen/entities.ts</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
|
7
|
+
<link rel="stylesheet" href="../../base.css" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
+
<style type='text/css'>
|
|
10
|
+
.coverage-summary .sorter {
|
|
11
|
+
background-image: url(../../sort-arrow-sprite.png);
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
</head>
|
|
15
|
+
<body>
|
|
16
|
+
<div class='wrapper'>
|
|
17
|
+
<div class='pad1'>
|
|
18
|
+
<h1>
|
|
19
|
+
<a href="../../index.html">All files</a> / <a href="index.html">test-utils/fourteen</a> entities.ts
|
|
20
|
+
</h1>
|
|
21
|
+
<div class='clearfix'>
|
|
22
|
+
<div class='fl pad1y space-right2'>
|
|
23
|
+
<span class="strong">100% </span>
|
|
24
|
+
<span class="quiet">Statements</span>
|
|
25
|
+
<span class='fraction'>1/1</span>
|
|
26
|
+
</div>
|
|
27
|
+
<div class='fl pad1y space-right2'>
|
|
28
|
+
<span class="strong">100% </span>
|
|
29
|
+
<span class="quiet">Branches</span>
|
|
30
|
+
<span class='fraction'>0/0</span>
|
|
31
|
+
</div>
|
|
32
|
+
<div class='fl pad1y space-right2'>
|
|
33
|
+
<span class="strong">100% </span>
|
|
34
|
+
<span class="quiet">Functions</span>
|
|
35
|
+
<span class='fraction'>0/0</span>
|
|
36
|
+
</div>
|
|
37
|
+
<div class='fl pad1y space-right2'>
|
|
38
|
+
<span class="strong">100% </span>
|
|
39
|
+
<span class="quiet">Lines</span>
|
|
40
|
+
<span class='fraction'>1/1</span>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<p class="quiet">
|
|
44
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
45
|
+
</p>
|
|
46
|
+
</div>
|
|
47
|
+
<div class='status-line high'></div>
|
|
48
|
+
<pre><table class="coverage">
|
|
49
|
+
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
|
|
50
|
+
<a name='L2'></a><a href='#L2'>2</a>
|
|
51
|
+
<a name='L3'></a><a href='#L3'>3</a>
|
|
52
|
+
<a name='L4'></a><a href='#L4'>4</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
53
|
+
<span class="cline-any cline-neutral"> </span>
|
|
54
|
+
<span class="cline-any cline-yes">1x</span>
|
|
55
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import { personEntity } from './models/person';
|
|
56
|
+
import { customerEntity } from './models/customer';
|
|
57
|
+
export const entities = [personEntity, customerEntity];
|
|
58
|
+
</pre></td></tr>
|
|
59
|
+
</table></pre>
|
|
60
|
+
<div class='push'></div><!-- for sticky footer -->
|
|
61
|
+
</div><!-- /wrapper -->
|
|
62
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
|
63
|
+
Code coverage
|
|
64
|
+
generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Sun Jun 01 2025 21:09:39 GMT-0400 (Eastern Daylight Time)
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
<script src="../../prettify.js"></script>
|
|
68
|
+
<script>
|
|
69
|
+
window.onload = function () {
|
|
70
|
+
if (typeof prettyPrint === 'function') {
|
|
71
|
+
prettyPrint();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
</script>
|
|
75
|
+
<script src="../../sorter.js"></script>
|
|
76
|
+
<script src="../../block-navigation.js"></script>
|
|
77
|
+
</body>
|
|
78
|
+
</html>
|