repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_status.rs
workspace_tests/src/progress_model/progress_status.rs
use peace::progress_model::{ProgressComplete, ProgressStatus}; #[test] fn debug() { assert_eq!("Initialized", format!("{:?}", ProgressStatus::Initialized)) } #[test] fn clone() { assert_eq!( ProgressStatus::Initialized, ProgressStatus::Initialized.clone() ) } #[test] fn deserialize() { ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_update.rs
workspace_tests/src/progress_model/progress_update.rs
use peace::progress_model::{ProgressComplete, ProgressDelta, ProgressLimit, ProgressUpdate}; #[test] fn clone() { let progress_update_0 = ProgressUpdate::Delta(ProgressDelta::Tick); #[allow(clippy::redundant_clone)] // https://github.com/rust-lang/rust-clippy/issues/9011 let progress_update_1 = progress_up...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_tracker.rs
workspace_tests/src/progress_model/progress_tracker.rs
use std::time::Duration; use peace::{ progress_model::{ProgressLimit, ProgressStatus, ProgressTracker}, rt_model::indicatif::ProgressBar, }; #[test] fn progress_status_begins_as_initialized() { let progress_tracker = ProgressTracker::new(ProgressBar::hidden()); assert_eq!( &ProgressStatus::In...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_sender.rs
workspace_tests/src/progress_model/progress_sender.rs
use peace::{ item_model::item_id, progress_model::{ CmdProgressUpdate, ProgressDelta, ProgressMsgUpdate, ProgressSender, ProgressUpdateAndId, }, rt_model::ProgressUpdate, }; use tokio::sync::mpsc::{self, error::TryRecvError}; #[test] fn clone() { let item_id = item_id!("test_item_id"); ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_update_and_id.rs
workspace_tests/src/progress_model/progress_update_and_id.rs
use peace::{ item_model::item_id, progress_model::{ ProgressComplete, ProgressDelta, ProgressLimit, ProgressMsgUpdate, ProgressUpdate, ProgressUpdateAndId, }, }; #[test] fn clone() { let progress_update_and_id_0 = ProgressUpdateAndId { item_id: item_id!("test_item_id"), ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_delta.rs
workspace_tests/src/progress_model/progress_delta.rs
use peace::progress_model::ProgressDelta; #[test] fn debug() { assert_eq!("Tick", format!("{:?}", ProgressDelta::Tick)) } #[test] fn clone() { assert_eq!(ProgressDelta::Tick, ProgressDelta::Tick.clone()) } #[test] fn deserialize() { assert_eq!( ProgressDelta::Inc(3), serde_yaml::from_str(...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/progress_model/progress_complete.rs
workspace_tests/src/progress_model/progress_complete.rs
use peace::progress_model::ProgressComplete; #[test] fn debug() { assert_eq!("Success", format!("{:?}", ProgressComplete::Success)) } #[test] fn clone() { assert_eq!(ProgressComplete::Success, ProgressComplete::Success.clone()) } #[test] fn deserialize() { assert_eq!( ProgressComplete::Success, ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_rt/cmd_execution.rs
workspace_tests/src/cmd_rt/cmd_execution.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, cmd_rt::{CmdBlockRt, CmdBlockWrapper, CmdExecution}, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, resource_rt::states::{ ts::{Current, Goal}, StateDiffs, StatesCur...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_rt/cmd_execution/cmd_execution_error_builder.rs
workspace_tests/src/cmd_rt/cmd_execution/cmd_execution_error_builder.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::{CmdExecutionError, InputFetchError}, cmd_rt::{CmdBlockWrapper, CmdExecution}, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, resource_rt::states::{ ts::{Current, Goal}, StateDi...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/state_rt/states_serializer.rs
workspace_tests/src/state_rt/states_serializer.rs
use peace::{ flow_model::flow_id, flow_rt::ItemGraphBuilder, item_model::item_id, resource_rt::{ internal::StatesMut, paths::StatesCurrentFile, states::StatesCurrentStored, type_reg::untagged::TypeReg, }, rt_model::{Error, StatesDeserializeError, Storage}, state_rt::StatesSer...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/diff/tracked.rs
workspace_tests/src/diff/tracked.rs
use std::{ collections::hash_map::DefaultHasher, hash::{Hash, Hasher}, }; use peace::diff::{Equality, MaybeEq, Tracked}; mod maybe_eq { use peace::diff::{Equality, MaybeEq, Tracked}; use super::Value; #[test] fn tracked_unknown_returns_equality_unknown() { assert_eq!( Equ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/diff/changeable.rs
workspace_tests/src/diff/changeable.rs
use peace::diff::{Changeable, Equality, Tracked}; #[test] fn equality_returns_from_cmp_to() { let changeable = Changeable::new(Tracked::<u8>::Unknown, Tracked::<u8>::Known(1)); assert_eq!(Equality::Unknown, changeable.equality()); } // for coverage #[test] fn clone() { let changeable = Changeable::known(...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/diff/maybe_eq.rs
workspace_tests/src/diff/maybe_eq.rs
use std::collections::{HashMap, HashSet}; use peace::diff::{Equality, MaybeEq, Tracked}; #[test] fn vec_eq() { assert_eq!(Equality::Equal, vec![1, 2, 3].maybe_eq(&vec![1, 2, 3])); assert_eq!( Equality::Equal, vec![Tracked::Known(Value(1))].maybe_eq(&vec![Tracked::Known(Value(1))]) ); } #[...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/diff/equality.rs
workspace_tests/src/diff/equality.rs
use std::{cmp::Ordering, collections::HashMap}; use peace::diff::Equality; #[test] fn clone() { let _not_equal = Clone::clone(&Equality::NotEqual); } #[test] fn debug() { assert_eq!("NotEqual", format!("{:?}", Equality::NotEqual)); assert_eq!("Equal", format!("{:?}", Equality::Equal)); assert_eq!("Un...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks.rs
workspace_tests/src/rt/cmd_blocks.rs
mod apply_exec_cmd_block; mod apply_state_sync_check_cmd_block; mod diff_cmd_block; mod states_clean_insertion_cmd_block; mod states_current_read_cmd_block; mod states_discover_cmd_block; mod states_goal_read_cmd_block;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds.rs
workspace_tests/src/rt/cmds.rs
mod apply_stored_state_sync; mod clean_cmd; mod diff_cmd; mod ensure_cmd; mod states_current_read_cmd; mod states_current_stored_display_cmd; mod states_discover_cmd; mod states_goal_display_cmd; mod states_goal_read_cmd;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/states_current_read_cmd.rs
workspace_tests/src/rt/cmds/states_current_read_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, rt::cmds::{StatesCurrentReadCmd, StatesDiscoverCmd}, rt_model::{Error, Workspace, WorkspaceSpec}, }; use crate::{ peace_cmd_ctx_t...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/states_goal_read_cmd.rs
workspace_tests/src/rt/cmds/states_goal_read_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, rt::cmds::{StatesDiscoverCmd, StatesGoalReadCmd}, rt_model::{Error, Workspace, WorkspaceSpec}, }; use crate::{ peace_cmd_ctx_type...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/apply_stored_state_sync.rs
workspace_tests/src/rt/cmds/apply_stored_state_sync.rs
use peace::rt::cmds::ApplyStoredStateSync; #[test] fn clone() { let _diff_state_spec = Clone::clone(&ApplyStoredStateSync::Both); } #[test] fn debug() { assert_eq!("Both", format!("{:?}", ApplyStoredStateSync::Both)); } #[test] fn partial_eq() { assert_eq!(ApplyStoredStateSync::Both, ApplyStoredStateSync...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/clean_cmd.rs
workspace_tests/src/rt/cmds/clean_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt::cmds::{ ApplyStoredStateSync, CleanCmd, EnsureCmd, StatesCurrentRead...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
true
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/states_current_stored_display_cmd.rs
workspace_tests/src/rt/cmds/states_current_stored_display_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, rt::cmds::{StatesCurrentStoredDisplayCmd, StatesDiscoverCmd}, rt_model::{Error, Workspace, WorkspaceSpec}, }; use crate::{ peace_...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/states_goal_display_cmd.rs
workspace_tests/src/rt/cmds/states_goal_display_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, rt::cmds::{StatesDiscoverCmd, StatesGoalDisplayCmd}, rt_model::{Error, Workspace, WorkspaceSpec}, }; use crate::{ peace_cmd_ctx_t...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/ensure_cmd.rs
workspace_tests/src/rt/cmds/ensure_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{ interruptible::{InterruptSignal, InterruptStrategy, Interruptibility}, CmdCtxSpsf, ProfileSelection, }, cmd_model::{CmdBlockDesc, CmdOutcome}, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, resource_rt::{ paths...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
true
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/states_discover_cmd.rs
workspace_tests/src/rt/cmds/states_discover_cmd.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, item_model::ItemId, resource_rt::{ paths::StatesGoalFile, states::{StatesCurrentStored, StatesGoal}, type_reg:...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
true
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/diff_cmd.rs
workspace_tests/src/rt/cmds/diff_cmd.rs
use diff::{VecDiff, VecDiffType}; use peace::{ cfg::{app_name, profile}, cli::output::CliOutput, cmd_ctx::{CmdCtxMpsf, CmdCtxSpsf, CmdCtxTypes, ProfileSelection}, cmd_model::CmdOutcome, flow_model::FlowId, flow_rt::{Flow, ItemGraphBuilder}, params::ParamsSpec, resource_rt::states::{ ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/diff_cmd/diff_info_spec.rs
workspace_tests/src/rt/cmds/diff_cmd/diff_info_spec.rs
use peace::{ cfg::profile, rt::cmds::{DiffInfoSpec, DiffStateSpec}, }; #[test] fn clone() { let _diff_info_spec = Clone::clone(&DiffInfoSpec::new( &profile!("profile"), DiffStateSpec::Current, )); } #[test] fn debug() { let profile = profile!("profile"); let diff_info_spec = Di...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmds/diff_cmd/diff_state_spec.rs
workspace_tests/src/rt/cmds/diff_cmd/diff_state_spec.rs
use peace::rt::cmds::DiffStateSpec; #[test] fn clone() { let _diff_state_spec = Clone::clone(&DiffStateSpec::Current); } #[test] fn debug() { assert_eq!("Current", format!("{:?}", DiffStateSpec::Current)); } #[test] fn partial_eq() { assert_eq!(DiffStateSpec::Current, DiffStateSpec::Current); assert_...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/states_discover_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/states_discover_cmd_block.rs
use peace::{cmd_rt::CmdBlock, rt::cmd_blocks::StatesDiscoverCmdBlock}; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_includes_states_compared() { macro_rules! assert_input_type_names { ($constructor:ident) => { let cmd_block = StatesDiscoverCmdBlock::<TestCctNo...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/apply_exec_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/apply_exec_cmd_block.rs
use peace::{ cmd_rt::CmdBlock, resource_rt::states::ts::{Cleaned, CleanedDry, Ensured, EnsuredDry}, rt::cmd_blocks::ApplyExecCmdBlock, }; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_includes_states_current_and_states_target() { macro_rules! assert_input_type_names { ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/apply_state_sync_check_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/apply_state_sync_check_cmd_block.rs
use peace::{cmd_rt::CmdBlock, rt::cmd_blocks::ApplyStateSyncCheckCmdBlock}; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_includes_states_compared() { macro_rules! assert_input_type_names { ($constructor:ident, $expected:expr) => { let cmd_block = ApplyStateSyn...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/diff_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/diff_cmd_block.rs
use peace::{ cmd_rt::CmdBlock, resource_rt::states::ts::{Current, CurrentStored, Goal, GoalStored}, rt::cmd_blocks::DiffCmdBlock, }; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_includes_states_ts0_and_states_ts1() { macro_rules! assert_input_type_names { ($st...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/states_goal_read_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/states_goal_read_cmd_block.rs
use peace::{cmd_rt::CmdBlock, rt::cmd_blocks::StatesGoalReadCmdBlock}; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_is_empty() { let cmd_block = StatesGoalReadCmdBlock::<TestCctNoOpOutput>::new(); let input_type_names: Vec<String> = cmd_block.input_type_names(); assert_...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/states_current_read_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/states_current_read_cmd_block.rs
use peace::{cmd_rt::CmdBlock, rt::cmd_blocks::StatesCurrentReadCmdBlock}; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_is_empty() { let cmd_block = StatesCurrentReadCmdBlock::<TestCctNoOpOutput>::new(); let input_type_names: Vec<String> = cmd_block.input_type_names(); a...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt/cmd_blocks/states_clean_insertion_cmd_block.rs
workspace_tests/src/rt/cmd_blocks/states_clean_insertion_cmd_block.rs
use peace::{cmd_rt::CmdBlock, rt::cmd_blocks::StatesCleanInsertionCmdBlock}; use crate::peace_cmd_ctx_types::TestCctNoOpOutput; #[test] fn input_type_names_is_empty() { let cmd_block = StatesCleanInsertionCmdBlock::<TestCctNoOpOutput>::new(); let input_type_names: Vec<String> = cmd_block.input_type_names(); ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes.rs
workspace_tests/src/rt_model/outcomes.rs
mod item_apply; mod item_apply_boxed; mod item_apply_partial; mod item_apply_partial_boxed; mod item_apply_partial_rt; mod item_apply_rt;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/in_memory_text_output.rs
workspace_tests/src/rt_model/in_memory_text_output.rs
use peace::rt_model::output::OutputWrite; #[cfg(not(feature = "error_reporting"))] #[tokio::test] async fn write_err() -> Result<(), Box<dyn std::error::Error>> { use peace::{item_model::item_id, rt_model::InMemoryTextOutput}; let mut output = InMemoryTextOutput::new(); let item_id = item_id!("test_item")...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/item_graph.rs
workspace_tests/src/rt_model/item_graph.rs
use peace::{ flow_rt::{ItemGraph, ItemGraphBuilder}, item_model::item_id, resource_rt::{ internal::StatesMut, states::{StatesCurrent, StatesSerde}, }, rt_model::{fn_graph::FnGraph, ItemBoxed}, }; use crate::{ mock_item::{MockItem, MockState}, vec_copy_item::VecCopyState, ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params.rs
workspace_tests/src/rt_model/params.rs
mod flow_params; mod flow_params_opt; mod profile_params; mod profile_params_opt; mod workspace_params; mod workspace_params_opt;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/native.rs
workspace_tests/src/rt_model/native.rs
mod workspace_spec;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/item_boxed.rs
workspace_tests/src/rt_model/item_boxed.rs
use std::any::TypeId; use peace::{ data::{DataAccessDyn, TypeIds}, item_model::item_id, rt_model::{ItemBoxed, ItemRt}, }; use crate::{ vec_copy_item::{VecA, VecB}, VecCopyError, VecCopyItem, }; #[test] fn deref_to_dyn_item_rt() { let vec_copy_item = VecCopyItem::default(); let item_boxed:...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/storage.rs
workspace_tests/src/rt_model/storage.rs
use peace::{ resource_rt::type_reg::untagged::{TypeMapOpt, TypeReg}, rt_model::{params::WorkspaceParams, Error, Storage}, }; use serde::{Deserialize, Serialize}; #[derive(Clone, Copy, Debug, PartialEq, Eq, Deserialize, Serialize)] struct TestStruct { a: u32, } #[test] fn clone() { let _ = Clone::clone...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/error.rs
workspace_tests/src/rt_model/error.rs
use std::fmt; use peace::{ item_model::item_id, miette::{Diagnostic, GraphicalReportHandler, GraphicalTheme}, params::{ParamsSpec, ParamsSpecs}, rt_model::Error, }; use crate::mock_item::MockSrc; mod params_specs_deserialize_error; mod states_deserialize_error; #[test] fn params_specs_mismatch_displ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/item_wrapper.rs
workspace_tests/src/rt_model/item_wrapper.rs
use diff::{VecDiff, VecDiffType}; use peace::{ cfg::{ApplyCheck, FnCtx}, data::marker::{ApplyDry, Clean, Current, Goal}, item_model::item_id, params::{MappingFnReg, ParamsSpec, ParamsSpecs}, resource_rt::{ internal::StatesMut, resources::ts::SetUp, states::{self, StatesCurren...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/workspace_dirs_builder.rs
workspace_tests/src/rt_model/workspace_dirs_builder.rs
use std::path::Path; use peace::{ cfg::app_name, rt_model::{Error, NativeError, WorkspaceDirsBuilder, WorkspaceSpec}, }; #[test] fn returns_workspace_dir_from_working_directory() -> Result<(), Box<dyn std::error::Error>> { let workspace_dirs = WorkspaceDirsBuilder::build(&app_name!(), WorkspaceSpec::Worki...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/item_graph_builder.rs
workspace_tests/src/rt_model/item_graph_builder.rs
use peace::{ flow_rt::ItemGraphBuilder, rt_model::{fn_graph::FnGraphBuilder, Error, ItemBoxed}, }; #[test] fn debug() { let builder = ItemGraphBuilder::<Error>::new(); assert!(format!("{builder:?}").starts_with("ItemGraphBuilder")); } #[test] fn into_inner() { let _fn_graph_builder = ItemGraphBui...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/workspace_params.rs
workspace_tests/src/rt_model/params/workspace_params.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMap, rt_model::params::WorkspaceParams}; #[test] fn new() { let workspace_params = WorkspaceParams::<()>::new(); assert_eq!(0, workspace_params.len()); assert_eq!(0, workspace_params.capacity()); } #[test] fn with_capacity() { let workspace_params = Worksp...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/flow_params.rs
workspace_tests/src/rt_model/params/flow_params.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMap, rt_model::params::FlowParams}; #[test] fn new() { let flow_params = FlowParams::<()>::new(); assert_eq!(0, flow_params.len()); assert_eq!(0, flow_params.capacity()); } #[test] fn with_capacity() { let flow_params = FlowParams::<()>::with_capacity(10);...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/profile_params_opt.rs
workspace_tests/src/rt_model/params/profile_params_opt.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMapOpt, rt_model::params::ProfileParamsOpt}; #[test] fn new() { let profile_params_opt = ProfileParamsOpt::<()>::new(); assert_eq!(0, profile_params_opt.len()); assert_eq!(0, profile_params_opt.capacity()); } #[test] fn with_capacity() { let profile_params...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/workspace_params_opt.rs
workspace_tests/src/rt_model/params/workspace_params_opt.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMapOpt, rt_model::params::WorkspaceParamsOpt}; #[test] fn new() { let workspace_params_opt = WorkspaceParamsOpt::<()>::new(); assert_eq!(0, workspace_params_opt.len()); assert_eq!(0, workspace_params_opt.capacity()); } #[test] fn with_capacity() { let work...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/flow_params_opt.rs
workspace_tests/src/rt_model/params/flow_params_opt.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMapOpt, rt_model::params::FlowParamsOpt}; #[test] fn new() { let flow_params_opt = FlowParamsOpt::<()>::new(); assert_eq!(0, flow_params_opt.len()); assert_eq!(0, flow_params_opt.capacity()); } #[test] fn with_capacity() { let flow_params_opt = FlowParamsO...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/params/profile_params.rs
workspace_tests/src/rt_model/params/profile_params.rs
use peace::{cmd_ctx::type_reg::untagged::TypeMap, rt_model::params::ProfileParams}; #[test] fn new() { let profile_params = ProfileParams::<()>::new(); assert_eq!(0, profile_params.len()); assert_eq!(0, profile_params.capacity()); } #[test] fn with_capacity() { let profile_params = ProfileParams::<()...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/native/workspace_spec.rs
workspace_tests/src/rt_model/native/workspace_spec.rs
use peace::rt_model::WorkspaceSpec; #[test] fn clone() { let workspace_spec = WorkspaceSpec::Path(".git".into()); assert_eq!(workspace_spec.clone(), workspace_spec); } #[test] fn debug() { let workspace_spec = WorkspaceSpec::WorkingDir; assert_eq!("WorkingDir", format!("{workspace_spec:?}")); } #[t...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/error/params_specs_deserialize_error.rs
workspace_tests/src/rt_model/error/params_specs_deserialize_error.rs
use miette::{Diagnostic, NamedSource}; use peace::{cfg::profile, flow_model::flow_id, rt_model::ParamsSpecsDeserializeError}; use serde::de::Error; #[test] fn coverage_diagnostic() { let error = Box::new(ParamsSpecsDeserializeError { profile: profile!("test_profile"), flow_id: flow_id!("test_flow")...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/error/states_deserialize_error.rs
workspace_tests/src/rt_model/error/states_deserialize_error.rs
use miette::{Diagnostic, NamedSource}; use peace::{flow_model::flow_id, rt_model::StatesDeserializeError}; use serde::de::Error; #[test] fn coverage_diagnostic() { let error = Box::new(StatesDeserializeError { flow_id: flow_id!("test_flow"), states_file_source: NamedSource::new("states_current.yaml...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply_partial_rt.rs
workspace_tests/src/rt_model/outcomes/item_apply_partial_rt.rs
use peace::{ cfg::ApplyCheck, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApplyPartial, ItemApplyPartialRt}, }; #[test] fn item_apply_rt_state_current_stored_returns_state_current_stored( ) -> Result<(), Box<dyn std::error::Error>> { let item_apply_partial = ItemApply...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply_boxed.rs
workspace_tests/src/rt_model/outcomes/item_apply_boxed.rs
use std::ops::{Deref, DerefMut}; use peace::{ cfg::{state::External, ApplyCheck, State}, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApply, ItemApplyBoxed, ItemApplyPartial}, }; use pretty_assertions::assert_eq; #[test] fn clone() { let item_apply_boxed = ItemApplyBo...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply_rt.rs
workspace_tests/src/rt_model/outcomes/item_apply_rt.rs
use peace::{ cfg::ApplyCheck, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApply, ItemApplyPartial, ItemApplyRt}, }; #[test] fn state_current_stored_returns_state_current_stored() -> Result<(), Box<dyn std::error::Error>> { let item_apply_partial = ItemApplyPartial { ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply.rs
workspace_tests/src/rt_model/outcomes/item_apply.rs
use peace::{ cfg::ApplyCheck, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApply, ItemApplyPartial, ItemApplyRt}, }; #[test] fn try_from_returns_ok_when_state_current_stored_is_none_and_others_are_some( ) -> Result<(), Box<dyn std::error::Error>> { let item_apply_parti...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply_partial_boxed.rs
workspace_tests/src/rt_model/outcomes/item_apply_partial_boxed.rs
use std::ops::{Deref, DerefMut}; use peace::{ cfg::{state::External, ApplyCheck, State}, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApplyPartial, ItemApplyPartialBoxed}, }; use pretty_assertions::assert_eq; #[test] fn clone() { let item_apply_partial_boxed = ItemApp...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/rt_model/outcomes/item_apply_partial.rs
workspace_tests/src/rt_model/outcomes/item_apply_partial.rs
use peace::{ cfg::ApplyCheck, resource_rt::type_reg::untagged::BoxDataTypeDowncast, rt_model::outcomes::{ItemApplyPartial, ItemApplyPartialRt}, }; #[test] fn item_apply_rt_state_current_stored_returns_state_current_stored( ) -> Result<(), Box<dyn std::error::Error>> { let item_apply_partial = ItemApply...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_mpsf_params.rs
workspace_tests/src/cmd_ctx/cmd_ctx_mpsf_params.rs
use std::collections::BTreeMap; use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxMpsf, CmdCtxTypes}, flow_model::flow_id, flow_rt::{Flow, ItemGraphBuilder}, params::ParamsSpec, resource_rt::{ paths::{FlowDir, ParamsSpecsFile, ProfileDir, ProfileHistoryDir}, type_reg::untag...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
true
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_npnf_params.rs
workspace_tests/src/cmd_ctx/cmd_ctx_npnf_params.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxNpnf, CmdCtxTypes}, }; use crate::{no_op_output::NoOpOutput, test_support::workspace, PeaceTestError}; use super::WorkspaceParamsKey; #[tokio::test] async fn build() -> Result<(), Box<dyn std::error::Error>> { let tempdir = tempfile::tempdir()?; ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_spnf.rs
workspace_tests/src/cmd_ctx/cmd_ctx_spnf.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpnf, ProfileSelection}, }; use crate::{ no_op_output::NoOpOutput, peace_cmd_ctx_types::TestCctNoOpOutput, test_support::workspace, }; #[tokio::test] async fn coverage_getters() -> Result<(), Box<dyn std::error::Error>> { let tempdir = tempfile::t...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_mpnf_params.rs
workspace_tests/src/cmd_ctx/cmd_ctx_mpnf_params.rs
use std::collections::BTreeMap; use peace::{ cfg::app_name, cmd_ctx::{CmdCtxMpnf, CmdCtxTypes}, profile_model::{profile, Profile, ProfileInvalidFmt}, resource_rt::{ paths::{ProfileDir, ProfileHistoryDir}, type_reg::untagged::TypeReg, }, rt_model::{Error as PeaceRtError, NativeEr...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_spnf_params.rs
workspace_tests/src/cmd_ctx/cmd_ctx_spnf_params.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpnf, CmdCtxTypes, ProfileSelection}, resource_rt::paths::{ProfileDir, ProfileHistoryDir}, }; use crate::{no_op_output::NoOpOutput, test_support::workspace, PeaceTestError}; use super::{ProfileParamsKey, WorkspaceParamsKey}; #[tokio::test] async fn b...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_npnf.rs
workspace_tests/src/cmd_ctx/cmd_ctx_npnf.rs
use peace::{cfg::app_name, cmd_ctx::CmdCtxNpnf}; use crate::{ no_op_output::NoOpOutput, peace_cmd_ctx_types::TestCctNoOpOutput, test_support::workspace, }; #[tokio::test] async fn coverage_getters() -> Result<(), Box<dyn std::error::Error>> { let tempdir = tempfile::tempdir()?; let workspace = workspace(&...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_mpnf.rs
workspace_tests/src/cmd_ctx/cmd_ctx_mpnf.rs
use peace::{cfg::app_name, cmd_ctx::CmdCtxMpnf}; use crate::{ no_op_output::NoOpOutput, peace_cmd_ctx_types::TestCctNoOpOutput, test_support::workspace, }; #[tokio::test] async fn coverage_getters() -> Result<(), Box<dyn std::error::Error>> { let tempdir = tempfile::tempdir()?; let workspace = workspace(&...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_spsf_params.rs
workspace_tests/src/cmd_ctx/cmd_ctx_spsf_params.rs
use peace::{ cfg::{app_name, Item}, cmd_ctx::{CmdCtxSpsf, CmdCtxTypes, ProfileSelection}, enum_iterator::Sequence, flow_model::flow_id, flow_rt::{Flow, ItemGraphBuilder}, item_model::item_id, params::{ FromFunc, MappingFn, MappingFnId, MappingFnImpl, MappingFnReg, MappingFns, Params,...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
true
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_mpsf.rs
workspace_tests/src/cmd_ctx/cmd_ctx_mpsf.rs
use peace::{ cfg::app_name, cmd_ctx::CmdCtxMpsf, flow_model::flow_id, flow_rt::{Flow, ItemGraphBuilder}, }; use crate::{ no_op_output::NoOpOutput, peace_cmd_ctx_types::TestCctNoOpOutput, test_support::workspace, PeaceTestError, }; #[tokio::test] async fn coverage_getters() -> Result<(), Box<dy...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/cmd_ctx/cmd_ctx_spsf.rs
workspace_tests/src/cmd_ctx/cmd_ctx_spsf.rs
use peace::{ cfg::{app_name, profile}, cmd_ctx::{CmdCtxSpsf, ProfileSelection}, flow_model::flow_id, flow_rt::{Flow, ItemGraphBuilder}, }; use crate::{ no_op_output::NoOpOutput, peace_cmd_ctx_types::TestCctNoOpOutput, test_support::workspace, PeaceTestError, }; #[tokio::test] async fn coverage...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal.rs
workspace_tests/src/resource_rt/internal.rs
mod flow_params_file; mod profile_params_file; mod state_diffs_mut; mod states_mut; mod workspace_dirs; mod workspace_params_file;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/resources.rs
workspace_tests/src/resource_rt/resources.rs
use std::any::{Any, TypeId}; use peace::resource_rt::{ resources::ts::{Empty, SetUp}, states::{StatesCurrent, StatesGoal}, Resources, }; mod ts; #[test] fn debug() { let mut resources = Resources::new(); resources.insert(1u32); assert_eq!( r#"Resources { inner: {u32: 1}, marker: Phan...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir.rs
workspace_tests/src/resource_rt/dir.rs
mod peace_dir; mod profile_dir; mod profile_history_dir; mod states_current_file; mod states_goal_file; mod workspace_dir;
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states.rs
workspace_tests/src/resource_rt/states.rs
use peace::{ item_model::item_id, resource_rt::{internal::StatesMut, states::StatesCurrent, type_reg::untagged::TypeMap}, }; mod states_cleaned; mod states_cleaned_dry; mod states_current; mod states_current_stored; mod states_ensured; mod states_ensured_dry; mod states_goal; mod states_goal_stored; mod states...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/state_diffs.rs
workspace_tests/src/resource_rt/state_diffs.rs
use peace::{ item_model::item_id, resource_rt::{internal::StateDiffsMut, states::StateDiffs, type_reg::untagged::TypeMap}, }; #[test] fn with_capacity_reserves_enough_capacity() { let state_diffs = StateDiffs::with_capacity(100); assert!(state_diffs.capacity() >= 100); } #[test] fn into_inner() { ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/profile_params_file.rs
workspace_tests/src/resource_rt/internal/profile_params_file.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use peace::{ cfg::{app_name, profile}, resource_rt::{ internal::ProfileParamsFile, paths::{PeaceAppDir, PeaceDir, ProfileDir}, }, }; #[test] pub fn debug() { let profile_params_file = ProfileParamsFile::from(Path::new("pr...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/workspace_params_file.rs
workspace_tests/src/resource_rt/internal/workspace_params_file.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use peace::{ cfg::app_name, resource_rt::{ internal::WorkspaceParamsFile, paths::{PeaceAppDir, PeaceDir}, }, }; #[test] pub fn debug() { let workspace_params_file = WorkspaceParamsFile::from(Path::new("workspace_params.ya...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/states_mut.rs
workspace_tests/src/resource_rt/internal/states_mut.rs
use peace::{ item_model::item_id, resource_rt::{internal::StatesMut, states::ts::Current, type_reg::untagged::TypeMap}, }; #[test] fn with_capacity_reserves_enough_capacity() { let states = StatesMut::<Current>::with_capacity(100); assert!(states.capacity() >= 100); } #[test] fn into_inner() { let...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/flow_params_file.rs
workspace_tests/src/resource_rt/internal/flow_params_file.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use peace::{ cfg::{app_name, profile}, flow_model::flow_id, resource_rt::{ internal::FlowParamsFile, paths::{FlowDir, PeaceAppDir, PeaceDir, ProfileDir}, }, }; #[test] pub fn debug() { let flow_params_file = FlowParamsFile::f...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/workspace_dirs.rs
workspace_tests/src/resource_rt/internal/workspace_dirs.rs
use std::path::PathBuf; use peace::resource_rt::{ internal::WorkspaceDirs, paths::{PeaceAppDir, PeaceDir, WorkspaceDir}, }; #[test] fn into_inner() { let workspace_dir = WorkspaceDir::new(PathBuf::from("workspace_dir")); let peace_dir = PeaceDir::new(PathBuf::from("peace_dir")); let peace_app_dir ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/internal/state_diffs_mut.rs
workspace_tests/src/resource_rt/internal/state_diffs_mut.rs
use peace::{ item_model::item_id, resource_rt::{internal::StateDiffsMut, type_reg::untagged::TypeMap}, }; #[test] fn with_capacity_reserves_enough_capacity() { let state_diffs_mut = StateDiffsMut::with_capacity(100); assert!(state_diffs_mut.capacity() >= 100); } #[test] fn into_inner() { let state...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/resources/ts.rs
workspace_tests/src/resource_rt/resources/ts.rs
mod debug { use peace::resource_rt::resources::ts::{Empty, SetUp}; #[test] fn empty() { assert_eq!("Empty", format!("{Empty:?}")); } #[test] fn set_up() { assert_eq!("SetUp", format!("{SetUp:?}")); } }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/profile_history_dir.rs
workspace_tests/src/resource_rt/dir/profile_history_dir.rs
use std::{ffi::OsStr, path::Path}; use peace::{ cfg::{app_name, profile}, resource_rt::paths::{PeaceAppDir, PeaceDir, ProfileDir, ProfileHistoryDir}, }; #[test] pub fn debug() { let profile_history_dir = ProfileHistoryDir::from(Path::new(".").to_path_buf()); assert_eq!( r#"ProfileHistoryDir("...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/states_current_file.rs
workspace_tests/src/resource_rt/dir/states_current_file.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use peace::{ cfg::{app_name, profile}, flow_model::flow_id, resource_rt::paths::{FlowDir, PeaceAppDir, PeaceDir, ProfileDir, StatesCurrentFile}, }; #[test] pub fn debug() { let states_current_file = StatesCurrentFile::from(Path::new("test_states...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/workspace_dir.rs
workspace_tests/src/resource_rt/dir/workspace_dir.rs
use std::{ffi::OsStr, path::Path}; use peace::resource_rt::paths::WorkspaceDir; #[test] pub fn debug() { let workspace_dir = WorkspaceDir::from(Path::new(".").to_path_buf()); assert_eq!(r#"WorkspaceDir(".")"#, format!("{workspace_dir:?}")); } #[test] pub fn partial_eq() { let workspace_dir_0 = Workspace...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/peace_dir.rs
workspace_tests/src/resource_rt/dir/peace_dir.rs
use std::{ffi::OsStr, path::Path}; use peace::resource_rt::paths::{PeaceDir, WorkspaceDir}; #[test] pub fn debug() { let peace_dir = PeaceDir::from(Path::new(".").to_path_buf()); assert_eq!(r#"PeaceDir(".")"#, format!("{peace_dir:?}")); } #[test] pub fn partial_eq() { let peace_dir_0 = PeaceDir::from(Pa...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/profile_dir.rs
workspace_tests/src/resource_rt/dir/profile_dir.rs
use std::{ffi::OsStr, path::Path}; use peace::{ cfg::{app_name, profile}, resource_rt::paths::{PeaceAppDir, PeaceDir, ProfileDir}, }; #[test] pub fn debug() { let profile_dir = ProfileDir::from(Path::new(".").to_path_buf()); assert_eq!(r#"ProfileDir(".")"#, format!("{profile_dir:?}")); } #[test] pub...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/dir/states_goal_file.rs
workspace_tests/src/resource_rt/dir/states_goal_file.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use peace::{ cfg::{app_name, profile}, flow_model::flow_id, resource_rt::paths::{FlowDir, PeaceAppDir, PeaceDir, ProfileDir, StatesGoalFile}, }; #[test] pub fn debug() { let states_goal_file = StatesGoalFile::from(Path::new("test_states_goal.yam...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_previous.rs
workspace_tests/src/resource_rt/states/states_previous.rs
use peace::resource_rt::states::{StatesCurrent, StatesPrevious}; #[test] fn from_states_current() { let _states_previous = StatesPrevious::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_ensured.rs
workspace_tests/src/resource_rt/states/states_ensured.rs
use peace::resource_rt::states::{StatesCurrent, StatesEnsured}; #[test] fn from_states_current() { let _states_ensured = StatesEnsured::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_goal.rs
workspace_tests/src/resource_rt/states/states_goal.rs
use peace::resource_rt::states::{StatesGoal, StatesGoalStored}; #[test] fn from_states_goal_stored() { let _states_goal = StatesGoal::from(StatesGoalStored::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_current_stored.rs
workspace_tests/src/resource_rt/states/states_current_stored.rs
use peace::resource_rt::states::{StatesCurrent, StatesCurrentStored}; #[test] fn from_states_current() { let _states_current_stored = StatesCurrentStored::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/ts.rs
workspace_tests/src/resource_rt/states/ts.rs
mod debug { use peace::resource_rt::states::ts::{ Clean, Cleaned, CleanedDry, Current, CurrentStored, Ensured, EnsuredDry, Goal, GoalStored, Previous, }; #[test] fn states_clean() { assert_eq!("Clean", format!("{Clean:?}")) } #[test] fn states_current_stored() { ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_goal_stored.rs
workspace_tests/src/resource_rt/states/states_goal_stored.rs
use peace::resource_rt::states::{StatesGoal, StatesGoalStored}; #[test] fn from_states_goal() { let _states_goal_stored = StatesGoalStored::from(StatesGoal::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_ensured_dry.rs
workspace_tests/src/resource_rt/states/states_ensured_dry.rs
use peace::resource_rt::states::{StatesCurrent, StatesEnsuredDry}; #[test] fn from_states_current() { let _states_ensured_dry = StatesEnsuredDry::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_current.rs
workspace_tests/src/resource_rt/states/states_current.rs
use peace::resource_rt::states::{StatesCurrent, StatesCurrentStored}; #[test] fn from_states_current_stored() { let _states_current = StatesCurrent::from(StatesCurrentStored::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_cleaned.rs
workspace_tests/src/resource_rt/states/states_cleaned.rs
use peace::resource_rt::states::{StatesCleaned, StatesCurrent}; #[test] fn from_states_current() { let _states_cleaned = StatesCleaned::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/resource_rt/states/states_cleaned_dry.rs
workspace_tests/src/resource_rt/states/states_cleaned_dry.rs
use peace::resource_rt::states::{StatesCleanedDry, StatesCurrent}; #[test] fn from_states_current() { let _states_cleaned_dry = StatesCleanedDry::from(StatesCurrent::new()); }
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/flow_model/item_info.rs
workspace_tests/src/flow_model/item_info.rs
use peace::{flow_model::ItemInfo, item_model::item_id}; #[test] fn clone() { let item_info = ItemInfo::new(item_id!("item_id")); assert_eq!(item_info, Clone::clone(&item_info)); } #[test] fn debug() { let item_info = ItemInfo::new(item_id!("item_id")); assert_eq!( "ItemInfo { item_id: ItemId...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false
azriel91/peace
https://github.com/azriel91/peace/blob/5e2c43f2c0b18672749d0902d2285c703e24de97/workspace_tests/src/flow_model/flow_spec_info.rs
workspace_tests/src/flow_model/flow_spec_info.rs
use peace::{ data::fn_graph::{Edge, WouldCycle}, flow_model::{ dot_ix::{ self, model::{ common::{Edges, NodeHierarchy, NodeNames}, edge_id, info_graph::{GraphDir, GraphStyle, InfoGraph}, node_id, }, ...
rust
Apache-2.0
5e2c43f2c0b18672749d0902d2285c703e24de97
2026-01-04T20:22:52.922300Z
false