cargo-grip4rust 0.7.0

A cargo subcommand for measuring Rust testability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright 2026 Umberto Gotti <umberto.gotti@umbertogotti.dev>
// Licensed under the MIT License
// SPDX-License-Identifier: MIT

use std::path::Path;

use crate::item_counts::ItemCounts;

pub trait CacheStore {
    fn get(&self, path: &Path) -> Option<ItemCounts>;
    fn set(&self, path: &Path, source: &str, counts: &ItemCounts);
    fn flush(&self);
}