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

akdilsiz / fs-shadow-js / ea9535db-813f-4d12-8bd2-ccc45bef35ec

17 Oct 2025 10:18PM UTC coverage: 84.249% (-0.1%) from 84.393%
ea9535db-813f-4d12-8bd2-ccc45bef35ec

push

circleci

Abdulkadir DILSIZ
Version bumps

188 of 249 branches covered (75.5%)

Branch coverage included in aggregate %.

395 of 443 relevant lines covered (89.16%)

19.21 hits per line

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

75.76
/fmap.js
1
export class FMap {
2
  m = new Map()
12✔
3

4
  has(key) {
5
    return this.m.has(key)
92✔
6
  }
7

8
  size(key) {
9
    if (!this.has(key)) return 0
50✔
10

11
    return this.m.get(key).length
49✔
12
  }
13

14
  get(key) {
15
    return this.m.get(key)
24✔
16
  }
17

18
  getLast(key) {
19
    if (this.has(key)) {
23!
20
      return this.get(key)[this.size(key) > 0 ? this.size(key) - 1 : 0]
23!
21
    }
22

23
    return null
×
24
  }
25

26
  set(key, value) {
27
    this.m.set(key, value)
6✔
28

29
    return this
6✔
30
  }
31

32
  setLast(key, value) {
33
    if (this.m.has(key)) {
×
34
      this.m.set(key, [...this.m.get(key).slice(0, this.size(key) - 1), value])
×
35
    }
36
  }
37

38
  append(key, value) {
39
    if (this.m.has(key)) {
18✔
40
      this.m.set(key, [...this.m.get(key), value])
2✔
41

42
      return this
2✔
43
    }
44

45
    this.m.set(key, [value])
16✔
46

47
    return this
16✔
48
  }
49

50
  remove(key) {
51
    if (this.m.has(key)) {
1!
52
      this.m.delete(key)
1✔
53
    }
54

55
    return this
1✔
56
  }
57

58
  clear() {
59
    this.m.clear()
3✔
60
  }
61
}
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