Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for deepEqual (0.2 sec)

  1. internal/s3select/select_test.go

    			if err != nil {
    				t.Error(err)
    				return
    			}
    			got, err := io.ReadAll(res)
    			if err != nil {
    				t.Error(err)
    				return
    			}
    			gotS := strings.TrimSpace(string(got))
    			if !reflect.DeepEqual(gotS, testCase.wantResult) {
    				t.Errorf("received response does not match with expected reply. Query: %s\ngot: %s\nwant:%s", testCase.query, gotS, testCase.wantResult)
    			}
    		})
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    			}
    			if test.wantErr && !sawErr {
    				t.Error("succeeded but want error")
    			} else if !test.wantErr && sawErr {
    				t.Error("unexpected error")
    			}
    			if test.want != nil && !reflect.DeepEqual(files, test.want) {
    				t.Errorf("got %v want %v", files, test.want)
    			}
    		})
    	}
    }
    
    func TestFSModTime(t *testing.T) {
    	t.Parallel()
    	z, err := OpenReader("testdata/subdir.zip")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    			content.policies[k] = nil
    			gotContent.policies[k] = nil
    		}
    		if !reflect.DeepEqual(content.policies, gotContent.policies) {
    			c.Fatalf("import %d: policies mismatch: expected: %v, got: %v", caseNum, content.policies, gotContent.policies)
    		}
    	}
    
    	if !reflect.DeepEqual(content.ldapUserPolicyMappings, gotContent.ldapUserPolicyMappings) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		s := Join(a, []byte(tt.sep))
    		if string(s) != tt.s {
    			t.Errorf(`Join(Split(%q, %q, %d), %q) = %q`, tt.s, tt.sep, tt.n, tt.sep, s)
    		}
    		if tt.n < 0 {
    			b := Split([]byte(tt.s), []byte(tt.sep))
    			if !reflect.DeepEqual(a, b) {
    				t.Errorf("Split disagrees withSplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
    			}
    		}
    		if len(a) > 0 {
    			in, out := a[0], s
    			if cap(in) == cap(out) && &in[:1][0] == &out[:1][0] {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top