From b03f9635ce5bd40112693a8455a1efee0faff103 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 11 Feb 2025 16:05:20 -0800 Subject: [PATCH] addrs: TestMap test function is exempt from the cyclop lint This function's cyclomatic complexity is essentially just a count of the number of conditions in the test, which are written out as a flat sequence of "if" statements and so cannot really be simplified any more without making the test harder to read and maintain overall. Signed-off-by: Martin Atkins --- internal/addrs/map_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/addrs/map_test.go b/internal/addrs/map_test.go index d32ebd6310..3764428758 100644 --- a/internal/addrs/map_test.go +++ b/internal/addrs/map_test.go @@ -9,6 +9,7 @@ import ( "testing" ) +//nolint:cyclop // The complexity of this test naturally scales by the number of test conditions, and would be less readable/maintainable if broken into smaller parts. func TestMap(t *testing.T) { variableName := InputVariable{Name: "name"} localHello := LocalValue{Name: "hello"}