MCPcopy
hub / github.com/perkeep/perkeep / testGet

Method testGet

pkg/server/share_test.go:138–149  ·  view source on GitHub ↗
(path string, wantErr errorCode)

Source from the content-addressed store, hash-verified

136}
137
138func (st *shareTester) testGet(path string, wantErr errorCode) {
139 gotErr := st.get(path)
140 if wantErr != noError {
141 if gotErr == nil || gotErr.code != wantErr {
142 st.t.Errorf("Fetching %s, error = %v; want %v", path, gotErr, wantErr)
143 }
144 } else {
145 if gotErr != nil {
146 st.t.Errorf("Fetching %s, error = %v; want success", path, gotErr)
147 }
148 }
149}
150
151func TestHandleGetViaSharing(t *testing.T) {
152 st := newShareTester(t)

Calls 1

getMethod · 0.95

Tested by

no test coverage detected