package simple

import (
	"testing"

	"honnef.co/go/tools/lint/testutil"
)

func TestAll(t *testing.T) {
	checks := map[string][]testutil.Test{
		"S1000": {{Dir: "single-case-select"}},
		"S1001": {{Dir: "copy"}},
		"S1002": {{Dir: "bool-cmp"}},
		"S1003": {{Dir: "contains"}},
		"S1004": {{Dir: "compare"}},
		"S1005": {{Dir: "CheckBlankOK"}, {Dir: "receive-blank"}, {Dir: "range_go13", Version: "1.3"}, {Dir: "range_go14", Version: "1.4"}},
		"S1006": {{Dir: "for-true"}, {Dir: "generated"}},
		"S1007": {{Dir: "regexp-raw"}},
		"S1008": {{Dir: "if-return"}},
		"S1009": {{Dir: "nil-len"}},
		"S1010": {{Dir: "slicing"}},
		"S1011": {{Dir: "loop-append"}},
		"S1012": {{Dir: "time-since"}},
		"S1016": {{Dir: "convert"}, {Dir: "convert_go17", Version: "1.7"}, {Dir: "convert_go18", Version: "1.8"}},
		"S1017": {{Dir: "trim"}},
		"S1018": {{Dir: "CheckLoopSlide"}},
		"S1019": {{Dir: "CheckMakeLenCap"}},
		"S1020": {{Dir: "CheckAssertNotNil"}},
		"S1021": {{Dir: "CheckDeclareAssign"}},
		"S1023": {{Dir: "CheckRedundantBreak"}, {Dir: "CheckRedundantReturn"}},
		"S1024": {{Dir: "CheckTimeUntil_go17", Version: "1.7"}, {Dir: "CheckTimeUntil_go18", Version: "1.8"}},
		"S1025": {{Dir: "CheckRedundantSprintf"}},
		"S1028": {{Dir: "CheckErrorsNewSprintf"}},
		"S1029": {{Dir: "CheckRangeStringRunes"}},
		"S1030": {{Dir: "CheckBytesBufferConversions"}},
		"S1031": {{Dir: "CheckNilCheckAroundRange"}},
		"S1032": {{Dir: "CheckSortHelpers"}},
		"S1033": {{Dir: "CheckGuardedDelete"}},
		"S1034": {{Dir: "CheckSimplifyTypeSwitch"}},
		"S1035": {{Dir: "CheckRedundantCanonicalHeaderKey"}},
		"S1036": {{Dir: "CheckUnnecessaryGuard"}},
		"S1037": {{Dir: "CheckElaborateSleep"}},
		"S1038": {{Dir: "CheckPrintSprintf"}},
		"S1039": {{Dir: "CheckSprintLiteral"}},
	}

	testutil.Run(t, Analyzers, checks)
}
