github
0 of 12 new or added lines in 1 file covered. (0.0%)
2072 existing lines in 64 files now uncovered.11055 of 22680 relevant lines covered (48.74%)
39194.31 hits per line
1 |
package snapshot
|
|
2 |
|
|
3 |
import (
|
|
4 |
"go.vocdoni.io/dvote/vochain/state"
|
|
5 |
) |
|
6 |
|
|
7 |
// DumpNoStateDB dumps the NoStateDB to the snapshot. `Create` needs to be called first.
|
|
UNCOV
8
|
func (s *Snapshot) DumpNoStateDB(v *state.State) error { |
× |
UNCOV
9
|
s.lock.Lock() |
× |
UNCOV
10
|
defer s.lock.Unlock()
|
× |
UNCOV
11
|
|
× |
UNCOV
12
|
s.header.Blobs = append(s.header.Blobs, SnapshotBlobHeader{
|
× |
UNCOV
13
|
Type: snapshotBlobType_NoStateDB, |
× |
UNCOV
14
|
Size: 0,
|
× |
UNCOV
15
|
}) |
× |
UNCOV
16
|
|
× |
UNCOV
17
|
return v.ExportNoStateDB(s)
|
× |
UNCOV
18
|
} |
× |