INNER CODE UNIT · Go

TestSetupCommand

cristianoliveira/ergo · main_test.go:180

func TestSetupCommand(t *testing.T) {
	setup.RunnerDefault = &TestRunner{}

	t.Run("when no system given", func(tt *testing.T) {
		args := []string{"ergo", "setup"}

		command, config := prepareSubCommand(args)
		if command != nil || config != nil {
			tt.Fatal("Expected result to not be nil")
		}
	})

	cases := []struct {
		title      string
		args       []string
		output     string
		expectFail bool
	}{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…