ExpectMapExpvarMetricDeltaWithDeadline returns a deferrable function which tests if the expvar map metric with name and key has changed by delta within the given deadline, once the function begins. Before returning, it fetches the original value for comparison.
(name, key string, want int64)
| 140 | |
| 141 | // ExpectMapExpvarMetricDeltaWithDeadline returns a deferrable function which tests if the expvar map metric with name and key has changed by delta within the given deadline, once the function begins. Before returning, it fetches the original value for comparison. |
| 142 | func (ts *TestServer) ExpectMapExpvarDeltaWithDeadline(name, key string, want int64) func() { |
| 143 | ts.tb.Helper() |
| 144 | return testutil.ExpectMapExpvarDeltaWithDeadline(ts.tb, name, key, want) |
| 145 | } |
| 146 | |
| 147 | // GetProgramMetric fetches the datum of the program metric name. |
| 148 | func (ts *TestServer) GetProgramMetric(name, prog string) datum.Datum { |