MCPcopy
hub / github.com/syncthing/syncthing / TestIndexIDString

Function TestIndexIDString

lib/protocol/protocol_test.go:652–658  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

650}
651
652func TestIndexIDString(t *testing.T) {
653 // Index ID is a 64 bit, zero padded hex integer.
654 var i IndexID = 42
655 if i.String() != "0x000000000000002A" {
656 t.Error(i.String())
657 }
658}
659
660func closeAndWait(c interface{}, closers ...io.Closer) {
661 for _, closer := range closers {

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
ErrorMethod · 0.65

Tested by

no test coverage detected