Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CompareFunc (1.95 sec)

  1. cmd/data-scanner_test.go

    				if sz != 0 {
    					gots = append(gots, oi)
    				}
    			})
    
    			if len(gots) != len(test.wants) {
    				t.Fatalf("Expected %d objects but got %d", len(test.wants), len(gots))
    			}
    			if slices.CompareFunc(gots, test.wants, func(g, w ObjectInfo) int {
    				if g.VersionID == w.VersionID {
    					return 0
    				}
    				return -1
    			}) != 0 {
    				t.Fatalf("Expected %v but got %v", test.wants, gots)
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top