MCPcopy
hub / github.com/ha/doozerd / TestStatWithFile

Function TestStatWithFile

src/pkg/store/store_test.go:415–424  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

413}
414
415func TestStatWithFile(t *testing.T) {
416 st := New()
417 defer close(st.Ops)
418 st.Ops <- Op{1, MustEncodeSet("/x", "123", Clobber)}
419 sync(st, 1)
420
421 ln, rev := st.Stat("/x")
422 assert.Equal(t, int64(1), rev)
423 assert.Equal(t, int32(3), ln)
424}
425
426func TestStatForMissing(t *testing.T) {
427 st := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
MustEncodeSetFunction · 0.85
syncFunction · 0.85
StatMethod · 0.65

Tested by

no test coverage detected