(t *testing.T)
| 166 | } |
| 167 | |
| 168 | func TestParseWithGraphDriverOptions(t *testing.T) { |
| 169 | optionLists := [][]string{ |
| 170 | {}, |
| 171 | {"vfs.ignore_chown_errors=true"}, |
| 172 | {"vfs.ignore_chown_errors=false"}, |
| 173 | } |
| 174 | for _, optionList := range optionLists { |
| 175 | store := newStoreWithGraphDriverOptions(t, optionList) |
| 176 | ref, err := Transport.ParseStoreReference(store, "test") |
| 177 | require.NoError(t, err, optionList) |
| 178 | require.NotNil(t, ref) |
| 179 | spec := ref.StringWithinTransport() |
| 180 | ref2, err := Transport.ParseReference(spec) |
| 181 | require.NoError(t, err) |
| 182 | require.NotNil(t, ref) |
| 183 | sref, ok := ref2.(*storageReference) |
| 184 | require.True(t, ok, "transport %s", ref2.Transport().Name()) |
| 185 | parsedOptions := sref.transport.store.GraphOptions() |
| 186 | assert.Equal(t, optionList, parsedOptions) |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | // makeLayerGoroutine writes to dest, and on success, updates uncompressedCount and uncompressedDigest |
| 191 | // before it terminates. |
nothing calls this directly
no test coverage detected
searching dependent graphs…