gofmt
This commit is contained in:
parent
76ecede42e
commit
8696b42178
|
@ -0,0 +1 @@
|
||||||
|
* @cplee
|
|
@ -9,9 +9,9 @@ import (
|
||||||
func TestCartisianProduct(t *testing.T) {
|
func TestCartisianProduct(t *testing.T) {
|
||||||
assert := assert.New(t)
|
assert := assert.New(t)
|
||||||
input := map[string][]interface{}{
|
input := map[string][]interface{}{
|
||||||
"foo": []interface{}{1, 2, 3, 4},
|
"foo": {1, 2, 3, 4},
|
||||||
"bar": []interface{}{"a", "b", "c"},
|
"bar": {"a", "b", "c"},
|
||||||
"baz": []interface{}{false, true},
|
"baz": {false, true},
|
||||||
}
|
}
|
||||||
|
|
||||||
output := CartesianProduct(input)
|
output := CartesianProduct(input)
|
||||||
|
|
|
@ -18,11 +18,11 @@ func TestEvaluate(t *testing.T) {
|
||||||
Workflow: &model.Workflow{
|
Workflow: &model.Workflow{
|
||||||
Name: "test-workflow",
|
Name: "test-workflow",
|
||||||
Jobs: map[string]*model.Job{
|
Jobs: map[string]*model.Job{
|
||||||
"job1": &model.Job{
|
"job1": {
|
||||||
Strategy: &model.Strategy{
|
Strategy: &model.Strategy{
|
||||||
Matrix: map[string][]interface{}{
|
Matrix: map[string][]interface{}{
|
||||||
"os": []interface{}{"Linux", "Windows"},
|
"os": {"Linux", "Windows"},
|
||||||
"foo": []interface{}{"bar", "baz"},
|
"foo": {"bar", "baz"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -34,7 +34,7 @@ func TestEvaluate(t *testing.T) {
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
StepResults: map[string]*stepResult{
|
StepResults: map[string]*stepResult{
|
||||||
"id1": &stepResult{
|
"id1": {
|
||||||
Outputs: map[string]string{
|
Outputs: map[string]string{
|
||||||
"foo": "bar",
|
"foo": "bar",
|
||||||
},
|
},
|
||||||
|
@ -106,7 +106,7 @@ func TestInterpolate(t *testing.T) {
|
||||||
Workflow: &model.Workflow{
|
Workflow: &model.Workflow{
|
||||||
Name: "test-workflow",
|
Name: "test-workflow",
|
||||||
Jobs: map[string]*model.Job{
|
Jobs: map[string]*model.Job{
|
||||||
"job1": &model.Job{},
|
"job1": {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue