(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestServiceHash(t *testing.T) { |
| 27 | hash1, err := ServiceHash(serviceConfig(1)) |
| 28 | assert.NilError(t, err) |
| 29 | hash2, err := ServiceHash(serviceConfig(2)) |
| 30 | assert.NilError(t, err) |
| 31 | assert.Equal(t, hash1, hash2) |
| 32 | } |
| 33 | |
| 34 | func serviceConfig(replicas int) types.ServiceConfig { |
| 35 | return types.ServiceConfig{ |
nothing calls this directly
no test coverage detected