بنقرة واحدة
backend-testing
Fixture-based testing patterns for Rust file operations (file_ops)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Fixture-based testing patterns for Rust file operations (file_ops)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Use this skill to generate well-branded interfaces and assets for Black Atom Industries (incl. the Livery theme manager), either for production or throwaway prototypes/mocks/etc. Contains essential design guidelines, colors, type, fonts, and UI kit components for prototyping in the "Warm Precision" datasheet language.
Create a git commit with livery conventions — conventional commits with fe/be scope prefix
Reference for the original pick-theme bash script from dots. Load when implementing livery updaters to understand the existing behavior being migrated.
استنادا إلى تصنيف SOC المهني
| name | backend-testing |
| description | Fixture-based testing patterns for Rust file operations (file_ops) |
| user-invocable | false |
cd src-tauri && cargo test
File operations (file_ops/text.rs, file_ops/yaml.rs) use real config file fixtures instead
of inline test strings. This catches formatting and indentation issues that simplified strings miss.
src-tauri/tests/fixtures/
text/ # Text-based configs (ghostty, nvim, tmux, delta)
ghostty-config.txt # Input config
ghostty-config-expected.txt # Expected output after patch
nvim-config.lua
nvim-config-expected.lua
nvim-config-vimcmd.lua # Alternative vim.cmd.colorscheme() syntax
nvim-config-vimcmd-expected.lua
tmux.conf
tmux-expected.conf
delta-config.ini
delta-config-expected.ini
yaml/ # YAML configs (lazygit)
lazygit-config.yml # Realistic lazygit config (target)
lazygit-theme-source.yml # Black Atom theme file (source/overlay)
lazygit-config-expected.yml # Expected output after merge
simple-config.yml
simple-overlay.yml
simple-config-expected.yml
$HOME (required by home-directory security check)patch_text_file or patch_yaml_file)assert_eq!fn fixture_path(name: &str) -> PathBuf {
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.join("tests")
.join("fixtures")
.join(name)
}
fn copy_fixture_to_temp(fixture_name: &str) -> tempfile::NamedTempFile {
let content = std::fs::read_to_string(fixture_path(fixture_name)).unwrap();
let home = dirs::home_dir().expect("Cannot determine home directory");
let mut file = tempfile::NamedTempFile::new_in(home).unwrap();
file.write_all(content.as_bytes()).unwrap();
file
}