(t *testing.T)
| 656 | } |
| 657 | |
| 658 | func 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: ¶llel, |
| 668 | }) |
| 669 | assert.Check(t, is.Equal(parallel, updateConfig.Parallelism)) |
| 670 | } |
| 671 | |
| 672 | func TestConvertServiceCapAddAndCapDrop(t *testing.T) { |
| 673 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…