Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for AlmostEquals (0.34 sec)

  1. tests/integration/pilot/locality_test.go

    			}
    			gotHost := parts[0]
    			got[gotHost]++
    		}
    		scopes.Framework.Infof("Got responses: %+v", got)
    		for svc, reqs := range got {
    			expect := expected[svc]
    			if !common.AlmostEquals(reqs, expect, 3) {
    				return fmt.Errorf("unexpected request distribution. Expected: %+v, got: %+v", expected, got)
    			}
    		}
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. tests/integration/pilot/common/traffic.go

    }
    
    func ExpectString(got, expected, help string) error {
    	if got != expected {
    		return fmt.Errorf("got unexpected %v: got %q, wanted %q", help, got, expected)
    	}
    	return nil
    }
    
    func AlmostEquals(a, b, precision int) bool {
    	upper := a + precision
    	lower := a - precision
    	if b < lower || b > upper {
    		return false
    	}
    	return true
    }
    
    type TrafficContext struct {
    	framework.TestContext
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 19:10:01 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      explicit FloatingPoint(const RawType& x) { u_.value_ = x; }
    
      // Static methods
    
      // Reinterprets a bit pattern as a floating-point number.
      //
      // This function is needed to test the AlmostEquals() method.
      static RawType ReinterpretBits(const Bits bits) {
        FloatingPoint fp(0);
        fp.u_.bits_ = bits;
        return fp.u_.value_;
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 43.1K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h

      explicit FloatingPoint(const RawType& x) { u_.value_ = x; }
    
      // Static methods
    
      // Reinterprets a bit pattern as a floating-point number.
      //
      // This function is needed to test the AlmostEquals() method.
      static RawType ReinterpretBits(const Bits bits) {
        FloatingPoint fp(0);
        fp.u_.bits_ = bits;
        return fp.u_.value_;
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

                                             RawType expected,
                                             RawType actual) {
      const FloatingPoint<RawType> lhs(expected), rhs(actual);
    
      if (lhs.AlmostEquals(rhs)) {
        return AssertionSuccess();
      }
    
      ::std::stringstream expected_ss;
      expected_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2)
                  << expected;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  6. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest.h

                                             RawType expected,
                                             RawType actual) {
      const FloatingPoint<RawType> lhs(expected), rhs(actual);
    
      if (lhs.AlmostEquals(rhs)) {
        return AssertionSuccess();
      }
    
      ::std::stringstream expected_ss;
      expected_ss << std::setprecision(std::numeric_limits<RawType>::digits10 + 2)
                  << expected;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 86.4K bytes
    - Viewed (0)
  7. tests/integration/pilot/common/routing.go

    						for serviceName, exp := range splitPerHost {
    							hostResponses := result.Responses.Match(func(r echoClient.Response) bool {
    								return strings.HasPrefix(r.Hostname, serviceName.Name)
    							})
    							if !AlmostEquals(len(hostResponses), exp, errorThreshold) {
    								return fmt.Errorf("expected %v calls to %s, got %v", exp, serviceName, len(hostResponses))
    							}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  8. src/internal/trace/traceviewer/static/trace_viewer_full.html

    eq&=this.panX===that.panX;eq&=this.panY===that.panY;eq&=this.scaleX===that.scaleX;return!!eq;},almostEquals(that){let eq=true;if(that===undefined||that===null){return false;}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top