Skip to content

Commit 8400294

Browse files
author
Ernest
committed
test: ignore branch covverage for exhaustive check
1 parent 59457b5 commit 8400294

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/zod-date-faker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export class ZodDateFaker extends ZodTypeFaker<z.ZodDate> {
2020
case 'max':
2121
max = Math.min(max, check.value)
2222
break
23+
/* istanbul ignore next */
2324
default: {
2425
const _: never = check
2526
throw Error('unimplemented')

src/zod-effects-faker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class ZodEffectsFaker<T extends z.ZodEffects<any, any, any>> extends ZodT
1717
case 'transform':
1818
return this.schema._def.effect.transform(result, { addIssue: () => void 0, path: [] })
1919

20+
/* istanbul ignore next */
2021
default: {
2122
const _: never = this.schema._def.effect
2223
throw Error('unimplemented')

src/zod-number-faker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class ZodNumberFaker extends ZodTypeFaker<z.ZodNumber> {
6969
return { min: check.value, max: check.value, precision: 0.1 }
7070
case 'finite':
7171
break
72+
/* istanbul ignore next */
7273
default:
7374
const _: never = check
7475
throw Error('unimplemented')
@@ -97,6 +98,7 @@ export class ZodNumberFaker extends ZodTypeFaker<z.ZodNumber> {
9798
case 'int':
9899
case 'multipleOf':
99100
break
101+
/* istanbul ignore next */
100102
default:
101103
const _: never = check
102104
throw Error('unimplemented')

src/zod-string-faker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ export class ZodStringFaker extends ZodTypeFaker<z.ZodString> {
166166
return runFake(faker => faker.internet.url())
167167
case 'uuid':
168168
return runFake(faker => faker.string.uuid())
169+
/* istanbul ignore next */
169170
default: {
170171
const _: never = check
171172
throw Error('unimplemented')

0 commit comments

Comments
 (0)