From f822a250f9b2759207d64cc53b3d80c0c08d2082 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 16 Sep 2026 19:23:35 +0200 Subject: feat: add /proc and /sys parsers with fixture tests Parsers take file contents as a string, not a path, so they test against committed fixtures with no filesystem mocking. hwmon is globbed by its name file rather than a fixed index, carried over from the old config: indices drift across kernel reorders and a stale one silently reads a different chip. Failure returns nil, never 0. A sensor reading 0 C is legitimate, so 0 cannot double as an error value. Co-Authored-By: Claude Opus 5 --- test/fixtures/temp1_input | 1 + 1 file changed, 1 insertion(+) create mode 100644 test/fixtures/temp1_input (limited to 'test/fixtures/temp1_input') diff --git a/test/fixtures/temp1_input b/test/fixtures/temp1_input new file mode 100644 index 0000000..46fba94 --- /dev/null +++ b/test/fixtures/temp1_input @@ -0,0 +1 @@ +53125 -- cgit v1.2.3