INNER CODE UNIT · Go
TestJoinSorted
rabbitmq/cluster-operator · kubectl-rabbitmq/cluster_test.go:288
func TestJoinSorted(t *testing.T) {
t.Parallel()
tests := []struct {
name string
lines []string
expected string
}{
{
name: "empty slice",
lines: []string{},
expected: "",
},
{
name: "single line",
lines: []string{"line1"},
expected: "line1",
},
{