From 2e227424ba3a5bcc703936c35bcadba8cda0931f Mon Sep 17 00:00:00 2001 From: mihna123 Date: Fri, 4 Sep 2026 01:13:26 +0200 Subject: config: add tests for config loading and page handlers Cover the defaults/system/user cascade, partial overrides, malformed files and base-url validation, plus DefaultPath resolution. An empty value in an ini file counts as unset, so that is pinned down too. Add the first handlers tests: routing, the instance name reaching the template, and escaping of operator-supplied config in the page. --- internal/config/testdata/malformed.conf | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 internal/config/testdata/malformed.conf (limited to 'internal/config/testdata/malformed.conf') diff --git a/internal/config/testdata/malformed.conf b/internal/config/testdata/malformed.conf new file mode 100644 index 0000000..327aace --- /dev/null +++ b/internal/config/testdata/malformed.conf @@ -0,0 +1,2 @@ +[instance +name = Unclosed Section -- cgit v1.3.1