Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for diff (0.13 sec)

  1. istioctl/pkg/multicluster/remote_secret_test.go

        users:
        - name: 54643f96-eca0-11e9-bb97-42010a80000a
          user:
            token: token
    ---
    `, clusterNameAnnotationKey, secretName, key)
    
    				if diff := cmp.Diff(got, wantOutput); diff != "" {
    					tt.Errorf("got\n%v\nwant\n%vdiff %v", got, c.want, diff)
    				}
    			}
    		})
    	}
    }
    
    func TestGetServiceAccountSecretToken(t *testing.T) {
    	secret := makeSecret("secret", "caData", "token")
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 20.6K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest-generate_test.go

    	got, err = compare.FilterManifest(got, diffSelect, "")
    	if err != nil {
    		t.Errorf("error selecting from output manifest: %v", err)
    	}
    	diff := compare.YAMLCmp(got, want)
    	if diff != "" {
    		t.Errorf("`manifest generate` diff = %s", diff)
    	}
    }
    
    func TestBareSpec(t *testing.T) {
    	inPathBase := filepath.Join(testDataDir, "input/bare_spec.yaml")
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu Apr 18 18:16:49 GMT 2024
    - 43.5K bytes
    - Viewed (0)
  3. internal/s3select/sql/value_test.go

    			wantOK: false,
    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			v := Value{
    				value: tt.fields.value,
    			}
    			got, got1 := v.bytesToFloat()
    			diff := math.Abs(got - tt.want)
    			if diff > floatCmpTolerance {
    				t.Errorf("bytesToFloat() got = %v, want %v", got, tt.want)
    			}
    			if got1 != tt.wantOK {
    				t.Errorf("bytesToFloat() got1 = %v, want %v", got1, tt.wantOK)
    			}
    		})
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 12.5K bytes
    - Viewed (0)
  4. cni/test/install_cni.go

    	}
    	expectedFile, err := os.ReadFile(expected)
    	if err != nil {
    		return fmt.Errorf("couldn't read expected: %v", err)
    	}
    	if !bytes.Equal(resultFile, expectedFile) {
    		return fmt.Errorf("expected != result. Diff: %v", cmp.Diff(string(expectedFile), string(resultFile)))
    	}
    	return nil
    }
    
    // compareConfResult does a string compare of 2 test files.
    func compareConfResult(result, expected string, t *testing.T) {
    	t.Helper()
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/endtoend_test.go

    	data, err := os.ReadFile(input)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    	lineno := 0
    	seq := 0
    	hexByLine := map[string]string{}
    	lines := strings.SplitAfter(string(data), "\n")
    Diff:
    	for _, line := range lines {
    		lineno++
    
    		// Ignore include of textflag.h.
    		if strings.HasPrefix(line, "#include ") {
    			continue
    		}
    
    		// Ignore GLOBL.
    		if strings.HasPrefix(line, "GLOBL ") {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. internal/s3select/sql/value.go

    }
    
    func floatCompare(op string, left, right float64) bool {
    	diff := math.Abs(left - right)
    	switch op {
    	case opLt:
    		return left < right
    	case opLte:
    		return left <= right
    	case opGt:
    		return left > right
    	case opGte:
    		return left >= right
    	case opEq:
    		return diff < floatCmpTolerance
    	case opIneq:
    		return diff > floatCmpTolerance
    	}
    	// This case does not happen
    	return false
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  7. cmd/erasure-healing-common.go

    		}
    		nano := t.UnixNano()
    		if group > 0 {
    			for k := range timeOccurrenceMap {
    				if k == nano {
    					// We add to ourself later
    					continue
    				}
    				diff := k - nano
    				if diff < 0 {
    					diff = -diff
    				}
    				// We are within the limit
    				if diff < groupNano {
    					timeOccurrenceMap[k]++
    				}
    			}
    		}
    		// Add ourself...
    		timeOccurrenceMap[nano]++
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    		return true
    	}
    
    	pfi := float64(poolStats.InitFreeSpace+poolStats.Bytes) / float64(poolStats.InitCapacity)
    	// Mark pool rebalance as done if within 5% from PercentFreeGoal.
    	if diff := math.Abs(pfi - r.PercentFreeGoal); diff <= 0.05 {
    		r.PoolStats[poolIdx].Info.Status = rebalCompleted
    		r.PoolStats[poolIdx].Info.EndTime = time.Now()
    		return true
    	}
    
    	return false
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cmd/admin-router.go

    			adminMiddleware(adminAPI.RemoveRemoteTargetHandler)).Queries("bucket", "{bucket:.*}", "arn", "{arn:.*}")
    		// ReplicationDiff - MinIO extension API
    		adminRouter.Methods(http.MethodPost).Path(adminVersion+"/replication/diff").HandlerFunc(
    			adminMiddleware(adminAPI.ReplicationDiffHandler)).Queries("bucket", "{bucket:.*}")
    		// ReplicationMRFHandler - MinIO extension API
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  10. internal/s3select/sql/parser.go

    	Quantity  *Operand     `parser:" @@ \",\""`
    	Timestamp *PrimaryTerm `parser:" @@ \")\""`
    }
    
    // DateDiffFunc represents the DATE_DIFF function
    type DateDiffFunc struct {
    	DatePart   string       `parser:" \"DATE_DIFF\" \"(\" @( \"YEAR\":Timeword | \"MONTH\":Timeword | \"DAY\":Timeword | \"HOUR\":Timeword | \"MINUTE\":Timeword | \"SECOND\":Timeword ) \",\" "`
    	Timestamp1 *PrimaryTerm `parser:" @@ \",\" "`
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.9K bytes
    - Viewed (0)
Back to top