#!/usr/bin/env bash # lib/tests/ctl_cases_commands.sh — assertions for focus_ctl.sh's subcommands, # against the device stubs in test_ctl_libs.sh. # # The start/stop/status trio is the same shape in all seven enforcer # libraries, so it is driven through tables rather than seven near-identical # blocks: the duplication is in the subject, and repeating it here would add # nothing and trip the jscpd gate. The per-enforcer specifics that tables # cannot express get their own cases below. set -euo pipefail # Run a subcommand for its side effects only. These are CLI entry points whose # exit status is not part of their contract, and an unguarded nonzero return # aborts the whole file under set -e. _run_quiet() { "$1" >/dev/null 2>&1 || return 0 } # _start_case