Cut counterfeit planning writers
This commit is contained in:
parent
38c41a3bc6
commit
de3414c8c0
6 changed files with 104 additions and 5 deletions
|
|
@ -805,8 +805,6 @@ pub use runtime_spine::put_hands_pr_receipt;
|
|||
pub use runtime_spine::put_mind_gateway_review;
|
||||
pub use runtime_spine::put_mind_state_commit_receipt;
|
||||
pub use runtime_spine::put_repo_frontier_hands_authority;
|
||||
pub use runtime_spine::put_repo_frontier_plan_adoption;
|
||||
pub use runtime_spine::put_repo_frontier_plan_candidate;
|
||||
pub use runtime_spine::put_repo_frontier_verification_request;
|
||||
pub use runtime_spine::put_repo_frontier_work_proposal;
|
||||
pub use runtime_spine::put_runtime_reorient_worker_result;
|
||||
|
|
|
|||
|
|
@ -3334,7 +3334,7 @@ pub(crate) fn validate_current_repo_model_claim_repair_request(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn put_repo_frontier_plan_candidate(
|
||||
pub(crate) fn put_repo_frontier_plan_candidate(
|
||||
store_path: impl AsRef<Path>,
|
||||
candidate: &RepoFrontierPlanCandidate,
|
||||
) -> Result<()> {
|
||||
|
|
@ -3425,7 +3425,7 @@ impl RepoFrontierPlanCandidate {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn put_repo_frontier_plan_adoption(
|
||||
pub(crate) fn put_repo_frontier_plan_adoption(
|
||||
store_path: impl AsRef<Path>,
|
||||
adoption: &RepoFrontierPlanAdoption,
|
||||
) -> Result<()> {
|
||||
|
|
@ -7205,6 +7205,13 @@ pub(crate) mod tests {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn frontier_candidate_and_mind_decision_have_no_public_counterfeit_writers() {
|
||||
let public_surface = include_str!("lib.rs");
|
||||
assert!(!public_surface.contains("put_repo_frontier_plan_candidate"));
|
||||
assert!(!public_surface.contains("put_repo_frontier_plan_adoption"));
|
||||
}
|
||||
|
||||
fn proposal_selection_fixture(root: &Path, suffix: &str) -> Result<(PathBuf, String)> {
|
||||
let store = root.join(format!("proposal-selection-{suffix}.cc"));
|
||||
let runtime_id = format!("selection-runtime-{suffix}");
|
||||
|
|
|
|||
Reference in a new issue