• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

inclusion-numerique / coop-mediation-numerique / 0c817526-57bf-41ab-ac48-8c68e9f9592f

24 Mar 2026 05:48PM UTC coverage: 6.896% (-3.7%) from 10.556%
0c817526-57bf-41ab-ac48-8c68e9f9592f

push

circleci

web-flow
Merge pull request #462 from inclusion-numerique/feat/fuzzy-search-doublons

feat(beneficiaires): add fuzzy matching for duplicate detection

470 of 10483 branches covered (4.48%)

Branch coverage included in aggregate %.

0 of 4 new or added lines in 2 files covered. (0.0%)

1360 existing lines in 150 files now uncovered.

1355 of 15981 relevant lines covered (8.48%)

37.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

39.13
/apps/web/src/utils/yesNoBooleanOptions.ts
1
import { labelsToOptions } from '@app/ui/components/Form/utils/options'
1✔
2

3
export const yesNoLabels = {
1✔
4
  yes: 'Oui',
5
  no: 'Non',
6
} as const
7

8
export type YesOrNo = keyof typeof yesNoLabels
9

10
export const yesOrNo = Object.keys(yesNoLabels) as [keyof typeof yesNoLabels]
1✔
11

12
export const yesNoBooleanOptions = labelsToOptions(yesNoLabels)
1✔
13

14
export const yesNoToBoolean = (value: YesOrNo): boolean => value === 'yes'
1✔
15
export const booleanToYesNo = (boolean: boolean): YesOrNo =>
1✔
16
  boolean ? 'yes' : 'no'
×
17

18
export const optionalBooleanToYesNo = (value: boolean | undefined | null) =>
1✔
19
  value === undefined || value === null ? value : booleanToYesNo(value)
×
20

21
export const yesNoToOptionalBoolean = (
1✔
22
  value: YesOrNo | undefined | null,
UNCOV
23
): boolean | undefined => (value ? value === 'yes' : undefined)
×
24

25
export const booleanToYesNoLabel = (boolean: boolean): string =>
1✔
26
  boolean ? yesNoLabels.yes : yesNoLabels.no
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc