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

melchor629 / node-flac-bindings / 15650914751

14 Jun 2025 10:05AM UTC coverage: 91.005% (-0.2%) from 91.222%
15650914751

push

github

melchor629
fix: variable i refactor

161 of 206 branches covered (78.16%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

12 existing lines in 3 files now uncovered.

5019 of 5486 relevant lines covered (91.49%)

37227.11 hits per line

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

84.21
/lib/api.js
1
import { existsSync } from 'node:fs'
1✔
2
import { createRequire } from 'node:module'
1✔
3
import { dirname, join } from 'node:path'
1✔
4
import { fileURLToPath } from 'node:url'
1✔
5
import debug from 'debug'
1✔
6

7
const log = debug('flac:native')
1✔
8
const moduleRoot = dirname(dirname(fileURLToPath(import.meta.url)))
1✔
9
const libraryPath = ['build/Debug', 'build/Release']
1✔
10
  .map((p) => join(moduleRoot, p, 'flac-bindings.node'))
1✔
11
  .find((p) => existsSync(p))
1✔
12

13
log('Module root path:', moduleRoot)
1✔
14
log('Library path:', libraryPath ?? '<not found>')
1!
15
if (!libraryPath) {
1!
UNCOV
16
  throw new Error(
×
UNCOV
17
    'Could not find the the native addon. Please ensure the install script has run or run it manually.',
×
UNCOV
18
  )
×
UNCOV
19
}
×
20

21
const require = createRequire(import.meta.url)
1✔
22
export const {
1✔
23
  _coverageFlush,
1✔
24
  _testAsync,
1✔
25
  Chain,
1✔
26
  Decoder,
1✔
27
  DecoderBuilder,
1✔
28
  Encoder,
1✔
29
  EncoderBuilder,
1✔
30
  Iterator,
1✔
31
  SimpleIterator,
1✔
32
  fns,
1✔
33
  format,
1✔
34
  metadata,
1✔
35
  metadata0,
1✔
36
  napiVersion,
1✔
37
} = require(libraryPath)
1✔
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