Improve test coverage reporting / accuracy (#7819)

* improve test coverage reporting / accuracy

* handle absolute coverpaths

* move tests into multiple files

* rename codecov.yml (https://github.com/codecov/support/issues/426)
Этот коммит содержится в:
Chris
2017-11-13 13:59:51 -06:00
коммит произвёл Christopher Speller
родитель 1329aa51b6
Коммит 865f9f83a7
12 изменённых файлов: 408 добавлений и 293 удалений

Просмотреть файл

@@ -50,7 +50,7 @@ func (a *App) NewWebHub() *Hub {
connections: make([]*WebConn, 0, model.SESSION_CACHE_SIZE),
broadcast: make(chan *model.WebSocketEvent, BROADCAST_QUEUE_SIZE),
stop: make(chan struct{}),
didStop: make(chan struct{}, 1),
didStop: make(chan struct{}),
invalidateUser: make(chan string),
ExplicitStop: false,
}
@@ -446,7 +446,7 @@ func (h *Hub) Start() {
h.connections = make([]*WebConn, 0, model.SESSION_CACHE_SIZE)
h.ExplicitStop = true
h.didStop <- struct{}{}
close(h.didStop)
return
}