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

DaniSomoza / galactic-commander / 12728621970

11 Jan 2025 11:55PM UTC coverage: 47.963% (-4.1%) from 52.086%
12728621970

Pull #12

github

web-flow
Merge e784abf9e into a8e301a23
Pull Request #12: [fleets] Explore planets

214 of 913 branches covered (23.44%)

Branch coverage included in aggregate %.

154 of 505 new or added lines in 55 files covered. (30.5%)

10 existing lines in 9 files now uncovered.

1564 of 2794 relevant lines covered (55.98%)

3.46 hits per line

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

14.29
/packages/game-engine/src/engine/fleets/getAmountOfStarFighters.ts
1
import { IFleetUnits } from '../../types/IFleet'
2

3
function getAmountOfStarFighters(units: IFleetUnits[]): number {
NEW
4
  return units.reduce((starFighters, { unit, amount }) => {
×
NEW
5
    const isStarFighter = unit.subtype === 'STAR_FIGHTER'
×
6

NEW
7
    if (isStarFighter) {
×
NEW
8
      return amount + starFighters
×
9
    }
10

NEW
11
    return starFighters
×
12
  }, 0)
13
}
14

15
export default getAmountOfStarFighters
4✔
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