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

rm-hull / next-departures-api / 25074444858 / 1
28%
main: 28%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 07:55PM UTC
Files 13
Run time 0s
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

28 Apr 2026 07:54PM UTC coverage: 18.549% (+11.1%) from 7.488%
25074444858.1

push

github

web-flow
refactor: support name-based CSV column mapping (#4)

Refactor the CSV parsing logic to use a `headerMap` for looking up
column indices by name. This replaces fragile hardcoded index references
in the `FromTuple` function, making the parser resilient to changes in
column order.

*   `ParseCSV` now generates a `map[string]int` from the header row.
*   `FromTuple` utilizes a `val` helper to retrieve data by header name.
*   Added unit tests to verify mapping with reordered columns.

```mermaid
sequenceDiagram
    participant R as CSV Reader
    participant P as ParseCSV
    participant M as FromTuple

    R->>P: Read Header Row
    P->>P: Build map[name]index
    loop Each Record
        R->>P: Read Data Row
        P->>M: FromTuple(record, map)
        M->>M: Map lookup (e.g. "Easting")
        M-->>P: Model Instance
    end
```

156 of 841 relevant lines covered (18.55%)

0.2 hits per line

Source Files on job 25074444858.1
  • Tree
  • List 13
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25074444858
  • 0b87c749 on github
  • Prev Job for on main (#25074426878.1)
  • Next Job for on main (#25081574682.1)
  • 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