cli + tui to publish to leaflet (wip) & manage tasks, notes & watch/read lists ๐Ÿƒ
charm leaflet readability golang

docs: describe testing pattern

+15
+15
README.md
··· 21 ## Development 22 23 Requires Go v1.24+
··· 21 ## Development 22 23 Requires Go v1.24+ 24 + 25 + ### Testing 26 + 27 + #### Handlers 28 + 29 + The command handlers (`cmd/handlers/`) use a multi-layered testing approach for happy and error paths: 30 + 31 + - Environment Isolation 32 + - Tests manipulate environment variables to simulate configuration failures 33 + - File System Simulation 34 + - By creating temporary directories with controlled permissions, tests verify that handlers properly handle file system errors like read-only directories, missing files, and permission denied scenarios. 35 + - Data Corruption Testing 36 + - Tests intentionally corrupt database schemas and configuration files to ensure handlers detect and report data integrity issues. 37 + - Table-Driven Error Testing 38 + - Systematic testing of multiple error scenarios using structured test tables