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

inventree / InvenTree / 8604739077

08 Apr 2024 06:10PM CUT coverage: 91.825%. First build
8604739077

Pull #6978

github

web-flow
Merge 410171001 into 4adce85ef
Pull Request #6978: Bump docker/setup-buildx-action from 3.2.0 to 3.3.0

221 of 649 branches covered (34.05%)

Branch coverage included in aggregate %.

33252 of 35804 relevant lines covered (92.87%)

1.63 hits per line

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

0.0
/src/frontend/src/functions/conversion.tsx
1
/*
2
 * Determine if the provided value is "true":
3
 *
4
 * Many settings stored on the server are true/false,
5
 * but stored as string values, "true" / "false".
6
 *
7
 * This function provides a wrapper to ensure that the return type is boolean
8
 */
9
export function isTrue(value: any): boolean {
10
  if (value === true) {
×
11
    return true;
×
12
  }
13

14
  if (value === false) {
×
15
    return false;
×
16
  }
17

18
  let s = String(value).trim().toLowerCase();
×
19

20
  return ['true', 'yes', '1', 'on', 't', 'y'].includes(s);
×
21
}
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

© 2025 Coveralls, Inc