| 27 | import io.questdb.std.datetime.MicrosecondClock; |
| 28 | |
| 29 | public class TestMicroClock implements MicrosecondClock { |
| 30 | private final long increment; |
| 31 | private long micros; |
| 32 | |
| 33 | public TestMicroClock(long micros, long increment) { |
| 34 | this.micros = micros; |
| 35 | this.increment = increment * 1000; |
| 36 | } |
| 37 | |
| 38 | @Override |
| 39 | public long getTicks() { |
| 40 | long result = micros; |
| 41 | micros += increment; |
| 42 | return result; |
| 43 | } |
| 44 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…