package fixture // Not compiled: testdata is ignored by the go tool. import "strings" // render is a helper the gate does not read. A correct join elsewhere in // this file must not answer for it. func render(names []string) string { return strings.Join(names, ", ") } // MV-N1 func differs(names []string) string { return "the environment differs from the source's: " + render(names) } // MV-N2: nothing calls it. func storeDiffers(list string) string { return "the store differs from the source's: " + list } // MV-N3: one caller, through a local variable. func zoneLine(list string) string { return "the zones that answered: " + list } func zones(zs []string) string { joined := strings.Join(zs, ", ") return zoneLine(joined) } // MV-N4: two callers; the second joins with " or ". func regionLine(list string) string { return "the regions that answered: " + list } func regions(rs []string) string { return regionLine(strings.Join(rs, ", ")) } func regionsOr(rs []string) string { return regionLine(strings.Join(rs, " or ")) }