MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / testHashCodeandEqualsStartInvalid

Method testHashCodeandEqualsStartInvalid

test/core/TestTSQuery.java:189–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 }
188
189 @Test (expected = IllegalArgumentException.class)
190 public void testHashCodeandEqualsStartInvalid() {
191 TSQuery sub1 = getMetricForValidate();
192
193 final int hash_a = sub1.hashCode();
194 sub1.setStart("1h-ago");
195 assertTrue(hash_a != sub1.hashCode());
196 sub1.validateAndSetQuery();
197 }
198
199 @Test
200 public void testHashCodeandEqualsEnd() {

Callers

nothing calls this directly

Calls 4

getMetricForValidateMethod · 0.95
hashCodeMethod · 0.95
setStartMethod · 0.95
validateAndSetQueryMethod · 0.95

Tested by

no test coverage detected