mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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 <mart@degeneration.co.uk>
This commit is contained in:
parent
65f4d7f430
commit
b03f9635ce
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user