MCPcopy Create free account
hub / github.com/docker/cli / TestConvertUpdateConfigParallelism

Function TestConvertUpdateConfigParallelism

cli/compose/convert/service_test.go:658–670  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

656}
657
658func TestConvertUpdateConfigParallelism(t *testing.T) {
659 parallel := uint64(4)
660
661 // test default behavior
662 updateConfig := convertUpdateConfig(&composetypes.UpdateConfig{})
663 assert.Check(t, is.Equal(uint64(1), updateConfig.Parallelism))
664
665 // Non default value
666 updateConfig = convertUpdateConfig(&composetypes.UpdateConfig{
667 Parallelism: &parallel,
668 })
669 assert.Check(t, is.Equal(parallel, updateConfig.Parallelism))
670}
671
672func TestConvertServiceCapAddAndCapDrop(t *testing.T) {
673 tests := []struct {

Callers

nothing calls this directly

Calls 1

convertUpdateConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…