Compare commits

..

No commits in common. "e5b6bf487ac61364c7ffba197aea41b56cace247" and "2370fc6f23d8074100a54811ab098db7fcfefb0f" have entirely different histories.

2 changed files with 3 additions and 33 deletions

View File

@ -11,14 +11,8 @@ test:
- main
- merge_requests
script:
- go test -coverprofile=coverage.txt -covermode=atomic -race ./...
- go get github.com/boumenot/gocover-cobertura
- go run github.com/boumenot/gocover-cobertura < coverage.txt > coverage.xml
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
- go test -race ./...
push:
stage: push
rules:

View File

@ -627,32 +627,8 @@ func TestStateTeamIDs(t *testing.T) {
t.Errorf("Expected to find 0 team ID, found %d (%s), instead", len(teamIDs), teamIDs)
}
}
}
func TestStateDeleteTeamIDList(t *testing.T) {
s := NewTestState()
s.refresh()
s.Fs.Remove("teamids.txt")
teamIDs, err := s.TeamIDs()
if len(teamIDs) != 0 {
t.Errorf("Expected to find 0 team IDs, found %d (%s), instead", len(teamIDs), teamIDs)
}
if err == nil {
t.Errorf("Did not receive expected error for non-existent teamids.txt")
}
}
func TestStateTeamNames(t *testing.T) {
s := NewTestState()
s.refresh()
if teamNames := s.TeamNames(); len(teamNames) != 0 {
t.Errorf("Expected to find 0 registered teams, found %d (%s), instead", len(teamNames), teamNames)
}
}
func TestDevelState(t *testing.T) {