You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently I am using the civogo client to get all the valid regions to validate users input.
// IsValidRegionCIVO validates the region code for CIVOfuncisValidRegion(regstring) error {
regions, err:=civoClient.ListRegions()
iferr!=nil {
returnerr
}
for_, region:=rangeregions {
ifregion.Code==reg {
returnnil
}
}
returnfmt.Errorf("INVALID REGION")
}
now i want to test this function, via fakeCLient but it is returning fake output [{FAKE1 Fake testing region false {false false false false false false false false false} true}] regions. and using the original client requires creds
currently I am using the civogo client to get all the valid regions to validate users input.
now i want to test this function, via fakeCLient but it is returning
fake output [{FAKE1 Fake testing region false {false false false false false false false false false} true}]
regions. and using the original client requires credsThe text was updated successfully, but these errors were encountered: