INNER CODE UNIT · Go

TestExpectOptString

Netflix/go-expect · expect_opt_test.go:27

func TestExpectOptString(t *testing.T) {
	tests := []struct {
		title    string
		opt      ExpectOpt
		data     string
		expected bool
	}{
		{
			"No args",
			String(),
			"Hello world",
			false,
		},
		{
			"Single arg",
			String("Hello"),
			"Hello world",
			true,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…