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

Method getMetricForValidate

test/core/TestTSQuery.java:682–690  ·  view source on GitHub ↗

Sets up an object with good, common values for testing the validation function with an query string query. Each test can "set" the method it wants to fool with and call .validateAndSetQuery() Warning: This method calls into TestTSQuery @return A query object

()

Source from the content-addressed store, hash-verified

680 * @return A query object
681 */
682 private TSQuery getMetricForValidate() {
683 final TSQuery query = new TSQuery();
684 query.setStart("1356998400");
685 query.setEnd("1356998460");
686 final ArrayList<TSSubQuery> subs = new ArrayList<TSSubQuery>(1);
687 subs.add(TestTSSubQuery.getMetricForValidate());
688 query.setQueries(subs);
689 return query;
690 }
691}

Callers 15

validateMethod · 0.95
validateWithTimezoneMethod · 0.95
validateNullStartMethod · 0.95
validateEmptyStartMethod · 0.95
validateInvalidStartMethod · 0.95
validateNullEndMethod · 0.95
validateEmptyEndMethod · 0.95
validateNullQueriesMethod · 0.95
validateEmptyQueriesMethod · 0.95

Calls 5

setStartMethod · 0.95
setEndMethod · 0.95
getMetricForValidateMethod · 0.95
setQueriesMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected