MCPcopy
hub / github.com/google/seesaw / checkAllDown

Function checkAllDown

engine/vserver_test.go:1041–1054  ·  view source on GitHub ↗
(v *vserver)

Source from the content-addressed store, hash-verified

1039}
1040
1041func checkAllDown(v *vserver) []error {
1042 errs := make([]error, 0)
1043 for _, svc := range v.services {
1044 if svc.active {
1045 errs = append(errs, fmt.Errorf("Expected service %v to be inactive", svc))
1046 }
1047 }
1048 for ip, active := range v.active {
1049 if active {
1050 errs = append(errs, fmt.Errorf("Expected vserver IP %s to be inactive", ip))
1051 }
1052 }
1053 return errs
1054}
1055
1056func checkAllUp(v *vserver) []error {
1057 errs := make([]error, 0)

Callers 4

TestWatermarksFunction · 0.85
TestDisableVserverFunction · 0.85
TestVserverOverrideFunction · 0.85
TestUpdateVserverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected