Lines Matching refs:diffResults
414 diffResults, err := MakeResults(diffMap)
420 if len(diffResults.InBothChanged) != 2 {
421 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothChanged))
423 if len(diffResults.InBothSame) != 2 {
424 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothSame))
426 if len(diffResults.InFirstOnly) != 1 {
427 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InFirstOnly))
429 if len(diffResults.InSecondOnly) != 1 {
430 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InSecondOnly))
437 check4, ok := diffResults.InBothChanged["/project/file4.txt"]
447 check6, ok := diffResults.InBothChanged["/project/file6.txt"]
460 check1, ok := diffResults.InBothSame["/project/file1.txt"]
467 check5, ok := diffResults.InBothSame["/project/file5.txt"]
480 check2, ok := diffResults.InFirstOnly["/project/file2.txt"]
490 check3, ok := diffResults.InSecondOnly["/project/file3.txt"]
968 diffResults, err := MakeResults(diffMap)
974 if len(diffResults.InBothChanged) != 2 {
975 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothChanged))
977 if len(diffResults.InBothSame) != 2 {
978 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothSame))
980 if len(diffResults.InFirstOnly) != 1 {
981 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InFirstOnly))
983 if len(diffResults.InSecondOnly) != 1 {
984 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InSecondOnly))
991 check4, ok := diffResults.InBothChanged["/project/file4.txt"]
1001 check6, ok := diffResults.InBothChanged["/project/file6.txt"]
1014 check1, ok := diffResults.InBothSame["/project/file1.txt"]
1021 check5, ok := diffResults.InBothSame["/project/file5.txt"]
1034 check2, ok := diffResults.InFirstOnly["/project/file2.txt"]
1044 check3, ok := diffResults.InSecondOnly["/project/file3.txt"]
1522 diffResults, err := MakeResults(diffMap)
1528 if len(diffResults.InBothChanged) != 2 {
1529 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothChanged))
1531 if len(diffResults.InBothSame) != 2 {
1532 t.Fatalf("Expected %d, got %d", 2, len(diffResults.InBothSame))
1534 if len(diffResults.InFirstOnly) != 1 {
1535 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InFirstOnly))
1537 if len(diffResults.InSecondOnly) != 1 {
1538 t.Fatalf("Expected %d, got %d", 1, len(diffResults.InSecondOnly))
1545 check4, ok := diffResults.InBothChanged["/project/file4.txt"]
1555 check6, ok := diffResults.InBothChanged["/project/file6.txt"]
1568 check1, ok := diffResults.InBothSame["/project/file1.txt"]
1575 check5, ok := diffResults.InBothSame["/project/file5.txt"]
1588 check2, ok := diffResults.InFirstOnly["/project/file2.txt"]
1598 check3, ok := diffResults.InSecondOnly["/project/file3.txt"]