MCPcopy Create free account
hub / github.com/google/truth / numericFact

Method numericFact

core/src/main/java/com/google/common/truth/Fact.java:90–92  ·  view source on GitHub ↗

Creates a fact with the given key and value, which will be printed in a format like "key: value." The numeric value is converted to a string with delimiting commas.

(String key, @Nullable Number value)

Source from the content-addressed store, hash-verified

88 * value." The numeric value is converted to a string with delimiting commas.
89 */
90 static Fact numericFact(String key, @Nullable Number value) {
91 return new Fact(key, formatNumericValue(value), /* padStart= */ true);
92 }
93
94 /**
95 * Formats the given numeric value as a string with delimiting commas.

Callers 13

numericFacts_integersMethod · 0.80
numericFacts_doublesMethod · 0.80
isWithinMethod · 0.80
isNotWithinMethod · 0.80
compareValuesMethod · 0.80
isWithinMethod · 0.80
isNotWithinMethod · 0.80
isWithinMethod · 0.80
isNotWithinMethod · 0.80
isWithinMethod · 0.80

Calls 1

formatNumericValueMethod · 0.95

Tested by 4

numericFacts_integersMethod · 0.64
numericFacts_doublesMethod · 0.64