(path string, wantErr errorCode)
| 136 | } |
| 137 | |
| 138 | func (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 | |
| 151 | func TestHandleGetViaSharing(t *testing.T) { |
| 152 | st := newShareTester(t) |
no test coverage detected