INNER CODE UNIT · Go

Test_readState

mkubaczyk/helmsman · internal/app/cli_test.go:14

func Test_readState(t *testing.T) {
	type result struct {
		numApps        int
		numNSs         int
		numEnabledApps int
		numEnabledNSs  int
	}
	tests := []struct {
		name  string
		flags cli
		want  result
	}{
		{
			name: "yaml minimal example; no validation",
			flags: cli{
				files:          fileOptionArray([]fileOption{{"../../examples/minimal-example.yaml", 0}}),
				skipValidation: true,
			},

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…