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

facebookincubator / TTPForge / 24349827587
56%
main: 67%

Build:
Build:
LAST BUILD BRANCH: export-D106692973
DEFAULT BRANCH: main
Ran 13 Apr 2026 02:47PM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Apr 2026 02:46PM UTC coverage: 55.646%. First build
24349827587

Pull #614

github

facebook-github-bot
Consolidate parseutils into canonical PreambleFields

Summary:
Add the missing `Authors []string` field to `blocks.PreambleFields` and
create `parseutils.ParsePreambleOnly()` which returns the canonical struct.
Then migrate all 4 callers of the old `parseutils.ParseTTP()` and delete
the parallel type definitions (`TTP`, `Arg`, `Mitre`, `Platform`,
`Requirements`).

This eliminates the maintenance burden of keeping two TTP preamble struct
definitions in sync. There is now a single canonical preamble type
(`blocks.PreambleFields`) used throughout the codebase.

Callers migrated:
- cmd/run.go (UUID lookup)
- cmd/enumauthors.go (author aggregation)
- cmd/enumttps.go (MITRE/platform/author filtering)
- pkg/validation/integration.go (dummy arg extraction)

Key type mappings:
- parseutils.Mitre → *blocks.MitreAttack (pointer, nil-check added)
- parseutils.Requirements → *blocks.RequirementsConfig (pointer, nil-check added)
- parseutils.Arg.Default (any) → args.Spec.Default (*string, dereference added)
- parseutils.Arg.Choices ([]any) → args.Spec.Choices ([]string)

Reviewed By: d0n601

Differential Revision: D100220109
Pull Request #614: Consolidate parseutils into canonical PreambleFields

29 of 46 new or added lines in 7 files covered. (63.04%)

3154 of 5668 relevant lines covered (55.65%)

14.63 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
52.67
pkg/blocks/executor.go
5
61.29
pkg/blocks/expectstep.go
3
73.33
cmd/enumttps.go
2
12.73
cmd/enumauthors.go
2
49.51
pkg/blocks/ttps.go
Jobs
ID Job ID Ran Files Coverage
1 24349827587.1 13 Apr 2026 02:47PM UTC 79
55.65
GitHub Action Run
Source Files on build 24349827587
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #614
  • Delete
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