go-header icon indicating copy to clipboard operation
go-header copied to clipboard

header: increase test coverage for Store

Open Wondertan opened this issue 3 years ago • 3 comments

Wondertan avatar Feb 12 '22 23:02 Wondertan

Perhaps useful for assignee, you can generate code coverage via:

cd service/header
go test . --coverprofile=coverage.out
go tool cover -html=coverage.out

service/header/store.go is at 79.9% test coverage. The uncovered lines are primarily error handling lines. It looks like https://github.com/celestiaorg/celestia-node/blob/main/service/header/store_test.go doesn't test for error handling yet.

rootulp avatar Mar 01 '22 01:03 rootulp

I guess this is out of date since here isn't service/header now.

HoytRen avatar Oct 12 '22 08:10 HoytRen

@HoytRen it looks like it was moved to https://github.com/celestiaorg/celestia-node/tree/main/header

For example: https://github.com/celestiaorg/celestia-node/blob/main/header/store/store.go

rootulp avatar Oct 12 '22 15:10 rootulp