# Parameter :: `token::`
Edge case tests for the `token::` parameter. Tests validate boolean enforcement, default behavior, and Token status display control.
**Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
## Test Case Index
| EC-1 | `token:::0` suppressed from output | Field Control |
| EC-2 | `token::::2` rejected (out of range) | Boundary Values |
| EC-3 | `token::::yes` rejected (type validation) | Type Validation |
| EC-4 | Default value is `1` (present by default) | Default |
| EC-5 | `token::::1` explicit enable accepted | Field Control |
| EC-6 | `format::json` output unaffected by `token::::0` | Interaction |
## Test Coverage Summary
- Field Control: 2 tests (EC-1, EC-5)
- Boundary Values: 1 test (EC-2)
- Type Validation: 1 test (EC-3)
- Default: 1 test (EC-4)
- Interaction: 1 test (EC-6)
**Total:** 6 edge cases
**Behavioral Divergence Pair:** EC-1 (valid/expected path) ↔ EC-2 (invalid/rejected path)
## Test Cases
---
### EC-1: `token:::0` — field suppressed from output:
- **Given:** fixture with at least one account in credential store
- **When:** `clp .credentials.status token:::0`
- **Then:** `Token status` line absent from output
- **Exit:** 0
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
---
### EC-2: `token::::2` rejected:
- **Given:** clean environment
- **When:** `clp .credentials.status token::::2`
- **Then:** `token:: must be 0 or 1`; exit 1
- **Exit:** 1
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
---
### EC-3: `token::::yes` rejected:
- **Given:** clean environment
- **When:** `clp .credentials.status token::::yes`
- **Then:** `token:: must be 0 or 1`; exit 1
- **Exit:** 1
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
---
### EC-4: Default value (present by default):
- **Given:** fixture with at least one account in credential store
- **When:** `clp .credentials.status`
- **Then:** `Token status` line present in default output
- **Exit:** 0
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
---
### EC-5: `token::::1` explicit enable accepted:
- **Given:** fixture with at least one account in credential store
- **When:** `clp .credentials.status token::::1`
- **Then:** `Token status` line present in output
- **Exit:** 0
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)
---
### EC-6: `format::json` unaffected by `token::::0`:
- **Given:** fixture with at least one account in credential store
- **When:** `clp .credentials.status format::json token::::0`
- **Then:** JSON output contains all fields regardless of `token::` value
- **Exit:** 0
- **Source:** [params.md#parameter--9-token](../../../../docs/cli/param/008_token.md)