rillig / gobco

Measure branch coverage of golang tests
62 stars 12 forks source link

Get import path from go.mod #34

Open 1st-vil opened 5 months ago

1st-vil commented 5 months ago

Overview

I fixed #33

Changed points

Confirmation

I confirmed it works on a project structure shown as examples in #33

% gobco # existing version 1.3.2
# github.com/1st-vil/awesomeProject/something_test [github.com/1st-vil/awesomeProject/something.test]
./gobco_bridge_test.go:6:19: undefined: something.GobcoCover
FAIL    github.com/1st-vil/awesomeProject/something [build failed]
FAIL
go test .: exit status 1

% ~/gobco/gobco # executable file created from this PR
ok      github.com/1st-vil/awesomeProject/something     0.457s

Condition coverage: 0/0