4 ms·
Thanks! I really like the idea of the instrumented ExampleKeyValueStore class which can be defined like this: class ExampleKeyValueStore { ExampleKeyVal
by vikinghckr 4y ago
Thanks! I really like the idea of the instrumented ExampleKeyValueStore class which can be defined like this:
class ExampleKeyValueStore {
ExampleKeyValueStore(KeyValueStore wrapped);
int hit_count();
};
That means I can use the real KeyValueStore as a dependency while still testing the caching behavior. Cool!