- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for splitOutput (0.09 sec)
-
src/cmd/vet/vet_test.go
// Sources files are supplied as fullshort slice. // It consists of pairs: full path to source file and its base name. func errorCheck(outStr string, wantAuto bool, fullshort ...string) (err error) { var errs []error out := splitOutput(outStr, wantAuto) // Cut directory name. for i := range out { for j := 0; j < len(fullshort); j += 2 { full, short := fullshort[j], fullshort[j+1] out[i] = strings.ReplaceAll(out[i], full, short) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 01:02:40 UTC 2024 - 12.5K bytes - Viewed (0) -
pilot/pkg/config/kube/gateway/conversion_test.go
}) goldenFile := fmt.Sprintf("testdata/%s.yaml.golden", tt.name) res := append(output.Gateway, output.VirtualService...) util.CompareContent(t, marshalYaml(t, res), goldenFile) golden := splitOutput(readConfig(t, goldenFile, validator, tt.validationIgnorer)) // sort virtual services to make the order deterministic sort.Slice(golden.VirtualService, func(i, j int) bool {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 08 20:24:52 UTC 2024 - 34.9K bytes - Viewed (0) -
src/cmd/internal/testdir/testdir_test.go
} else { return fmt.Errorf("output should be empty when (optional) expected-output file %s is not present. Instead saw\n%s", filename, got) } } return nil } func splitOutput(out string, wantAuto bool) []string { // gc error messages continue onto additional lines with leading tabs. // Split the output at the beginning of each line that doesn't begin with a tab.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 57.5K bytes - Viewed (0)