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

inventree / InvenTree / 8535197168

03 Apr 2024 07:58AM CUT coverage: 90.342% (-2.2%) from 92.496%
8535197168

Pull #6881

github

web-flow
Merge a1722af93 into 6be2ede5e
Pull Request #6881: [PUI] Add coverage testing

227 of 631 branches covered (35.97%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

1 existing line in 1 file now uncovered.

31971 of 35009 relevant lines covered (91.32%)

1.12 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