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

ninoseki / mitaka / 13409095038

19 Feb 2025 09:14AM UTC coverage: 75.461% (+1.6%) from 73.847%
13409095038

Pull #865

github

web-flow
Merge 7d1e846c3 into c704afc77
Pull Request #865: v2.4.0

398 of 418 branches covered (95.22%)

Branch coverage included in aggregate %.

2182 of 3001 relevant lines covered (72.71%)

52.86 hits per line

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

4.35
/src/command/packer.ts
1
import type { CommandType } from "~/schemas";
1✔
2
import { truncate } from "~/utils";
×
3

4
const abbreviations = ["ip", "asn", "btc", "cve", "eth", "url"];
×
5

6
function capitalize(s: string) {
×
7
  return s.charAt(0).toUpperCase() + s.slice(1);
×
8
}
×
9

10
export function commandToID(command: CommandType): string {
×
11
  return JSON.stringify(command);
×
12
}
×
13

14
function isAbbreviationType(commandType: string): boolean {
×
15
  return abbreviations.includes(commandType);
×
16
}
×
17

18
function normalizeCommandType(commandType: string): string {
×
19
  if (isAbbreviationType(commandType)) {
×
20
    return commandType.toUpperCase();
×
21
  }
×
22

23
  return commandType;
×
24
}
×
25

26
export function commandToMessage(command: CommandType): string {
×
27
  return `${capitalize(command.action)} ${truncate(
×
28
    command.query,
×
29
  )} as ${normalizeCommandType(command.type)} on ${command.name}`;
×
30
}
×
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