MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestUpdateEmptyUpdateListSelectsNothing

Function TestUpdateEmptyUpdateListSelectsNothing

internal/devbox/update_test.go:222–229  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestUpdateEmptyUpdateListSelectsNothing(t *testing.T) {
223 devbox := devboxForTesting(t)
224
225 helloPkg := devpkg.PackageFromStringWithDefaults("hello@1.2.3", nil)
226
227 // packagesBeingUpdated is nil (default) — no package should be force-refreshed.
228 require.False(t, devbox.isBeingUpdated(helloPkg))
229}
230
231func currentSystem(*testing.T) string {
232 sys := nix.System() // NOTE: we could mock this too, if it helps.

Callers

nothing calls this directly

Calls 3

devboxForTestingFunction · 0.85
isBeingUpdatedMethod · 0.80

Tested by

no test coverage detected