Skip to content

bug: empty rows #155

@butuzov

Description

@butuzov

If we generate cover report

 set -o pipefail && go test -test.fullpath=true -v -cover  -covermode=atomic -coverprofile=coverage.out  ./... -json  > test.json

It can show up with some erros...

 > tparse -progress -file=tests.json -all
[PASS]       0.00s      github.com/butuzov/gaps/internal/parser
[PASS]       0.16s      github.com/butuzov/gaps
[PASS]       0.16s      github.com/butuzov/gaps/internal/cmd
[PASS]       0.16s      github.com/butuzov/gaps/internal/app
╭────────┬─────────┬──────────────────────────────────┬─────────────────────────────────────────╮
│ Status │ Elapsed │               Test               │                 Package                 │
├────────┼─────────┼──────────────────────────────────┼─────────────────────────────────────────┤
│        │         │                                  │                                         │
│        │         │                                  │                                         │
│        │         │                                  │                                         │
│  PASS  │  0.00   │ TestLines                        │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestParser                       │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/test_re/simple         │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/test_sm/simple         │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/current/simple         │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/test_re/bigger_numbers │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/test_sm/bigger_numbers │ github.com/butuzov/gaps/internal/parser │
│  PASS  │  0.00   │ TestLines/current/bigger_numbers │ github.com/butuzov/gaps/internal/parser │
╰────────┴─────────┴──────────────────────────────────┴─────────────────────────────────────────╯
╭────────┬──────────┬─────────────────────────────────────────┬───────┬──────┬──────┬──────╮
│ Status │ Elapsed  │                 Package                 │ Cover │ Pass │ Fail │ Skip │
├────────┼──────────┼─────────────────────────────────────────┼───────┼──────┼──────┼──────┤
│  PASS  │ (cached) │ github.com/butuzov/gaps/internal/parser │ 76.8% │  8   │  0   │  0   │
╰────────┴──────────┴─────────────────────────────────────────┴───────┴──────┴──────┴──────╯

Thank you for wonderful tools, much appreciate them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions