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

rm-hull / next-departures-api / 25073621163
18%
main: 28%

Build:
Build:
LAST BUILD BRANCH: chore/update-go-deps
DEFAULT BRANCH: main
Ran 28 Apr 2026 07:36PM UTC
Jobs 1
Files 12
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

28 Apr 2026 07:35PM UTC coverage: 19.141% (+11.5%) from 7.673%
25073621163

Pull #4

github

rm-hull
feat: support name-based CSV column mapping

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
```
Pull Request #4: refactor: support name-based CSV column mapping

49 of 56 new or added lines in 2 files covered. (87.5%)

4 existing lines in 1 file now uncovered.

156 of 815 relevant lines covered (19.14%)

0.2 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
0.0% internal/csv.go

Coverage Regressions

Lines Coverage ∆ File
4
0.0
0.0% internal/csv.go
Jobs
ID Job ID Ran Files Coverage
1 25073621163.1 28 Apr 2026 07:36PM UTC 12
19.14
GitHub Action Run
Source Files on build 25073621163
  • Tree
  • List 12
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #4
  • PR Base - main (#25072634506)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc