Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 413 for got4 (0.03 sec)

  1. internal/bucket/lifecycle/delmarker-expiration_test.go

    					fail = true
    				}
    			} else {
    				if err == nil {
    					fail = true
    				}
    				if test.err.Error() != err.Error() {
    					fail = true
    				}
    			}
    			if fail {
    				t.Fatalf("Expected %v but got %v", test.err, err)
    			}
    		})
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  2. cmd/os_windows.go

    		switch {
    		case data.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0:
    			// Reparse point is a symlink
    			fi, err := os.Stat(pathJoin(dirPath, name))
    			if err != nil {
    				// It got deleted in the meantime, not found
    				// or returns too many symlinks ignore this
    				// file/directory.
    				if osIsNotExist(err) || isSysErrPathNotFound(err) ||
    					isSysErrTooManySymlinks(err) {
    					continue
    				}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Oct 18 18:08:15 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  3. cmd/config-encrypted_test.go

    			}
    			if err == nil && !test.success {
    				t.Error("Expected failure, saw success")
    			}
    			if test.success {
    				if !bytes.Equal(ddata, data) {
    					t.Errorf("Expected %s, got %s", string(data), string(ddata))
    				}
    			}
    		})
    	}
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  4. callbacks.go

    		callbacks = removeCallbacks(callbacks, removedMap)
    	}
    	p.callbacks = callbacks
    
    	if p.fns, err = sortCallbacks(p.callbacks); err != nil {
    		p.db.Logger.Error(context.Background(), "Got error when compile callbacks, got %v", err)
    	}
    	return
    }
    
    func (c *callback) Before(name string) *callback {
    	c.before = name
    	return c
    }
    
    func (c *callback) After(name string) *callback {
    	c.after = name
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. cmd/erasure-healing_test.go

    			if !gotMeta.Equals(testCase.expectedMeta) {
    				t.Errorf("Expected %#v, got %#v", testCase.expectedMeta, gotMeta)
    			}
    			if dangling != testCase.expectedDangling {
    				t.Errorf("Expected dangling %t, got %t", testCase.expectedDangling, dangling)
    			}
    		})
    	}
    }
    
    // Tests both object and bucket healing.
    func TestHealing(t *testing.T) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  6. statement_test.go

    		`"User__Company".*`:  {"User__Company", "*"},
    		`"table"."*"`:        {"", ""},
    	} {
    		if table, column := matchName(k); table != v[0] || column != v[1] {
    			t.Errorf("failed to match value: %v, got %v, expect: %v", k, []string{table, column}, v)
    		}
    	}
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Sat Dec 23 13:19:41 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  7. cmd/signature-v4_test.go

    		},
    	}
    
    	// Run each test case individually.
    	for i, testCase := range testCases {
    		_, code := doesPolicySignatureMatch(testCase.form)
    		if code != testCase.expected {
    			t.Errorf("(%d) expected to get %s, instead got %s", i, niceError(testCase.expected), niceError(code))
    		}
    	}
    }
    
    func TestDoesPresignedSignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. internal/s3select/csv/reader_contrib_test.go

    					b.Fatalf("Reading init failed with %s", err)
    				}
    
    				got := 0
    				for err == nil {
    					record, err = r.Read(record)
    					if err != nil && err != io.EOF {
    						b.Fatalf("Reading failed with %s", err)
    					}
    					got++
    				}
    				r.Close()
    				if got != want {
    					b.Errorf("want %d records, got %d", want, got)
    				}
    			}
    		})
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  9. callbacks/create_test.go

    		Values: [][]interface{}{
    			{"alice", "email", 18, 1},
    			{"bob", "email", 19, 2},
    		},
    	}
    	if !reflect.DeepEqual(expected, values) {
    		t.Errorf("expected: %v got %v", expected, values)
    	}
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Mon Mar 18 05:48:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. tests/customize_field_test.go

    		AutoUnixNanoUpdateTime  uint64 `gorm:"autoupdatetime:nano"`
    	}
    
    	DB.Migrator().DropTable(&CustomizeFieldStruct{})
    
    	if err := DB.AutoMigrate(&CustomizeFieldStruct{}); err != nil {
    		t.Errorf("Failed to migrate, got error: %v", err)
    	}
    
    	if DB.Migrator().HasColumn(&CustomizeFieldStruct{}, "FieldIgnore") {
    		t.Errorf("FieldIgnore should not be created")
    	}
    
    	if DB.Migrator().HasColumn(&CustomizeFieldStruct{}, "field_ignore") {
    Registered: Sun Oct 27 09:35:08 UTC 2024
    - Last Modified: Fri Sep 11 09:33:31 UTC 2020
    - 6.9K bytes
    - Viewed (0)
Back to top