package src_test

import "testing"

// section: test
// Go 1.22+ - No need to capture loop variables
func Test_Print(t *testing.T) {
	t.Parallel()
	tests := []struct {
		name  string
		value int
	}{
		{name: "print 1", value: 1},
		{name: "print 2", value: 2},
		{name: "print 3", value: 3},
		{name: "print 4", value: 4},
	}
	for _, test := range tests {
		t.Run(test.name, func(st *testing.T) {
			st.Parallel() // This works correctly in Go 1.22+
			st.Log(test.value)
		})
	}
}

// section: test
