Skip to content

Commit 56bffba

Browse files
committed
test: pipeline testing
making changes in test file this will mean the actions run but the final job should not
1 parent fbdc657 commit 56bffba

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

options_test.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
var _ Option = OptionFunction(func(selector *Selector) error { return nil })
1313

1414
func Test_OptionFunction(t *testing.T) {
15-
1615
t.Run("nil", func(t *testing.T) {
1716
called := false
1817
option := OptionFunction(func(selector *Selector) error {
@@ -23,7 +22,6 @@ func Test_OptionFunction(t *testing.T) {
2322
assert.Nil(t, err)
2423
assert.True(t, called)
2524
})
26-
2725
t.Run("error", func(t *testing.T) {
2826
called := false
2927
option := OptionFunction(func(selector *Selector) error {
@@ -34,24 +32,19 @@ func Test_OptionFunction(t *testing.T) {
3432
assert.EqualError(t, err, "fail")
3533
assert.True(t, called)
3634
})
37-
3835
}
3936

4037
func Test_ScriptEngine(t *testing.T) {
41-
4238
t.Run("first", func(t *testing.T) {
43-
4439
engine := &testScriptEngine{value: 1}
4540
option := ScriptEngine(engine)
4641
selector := &Selector{}
4742

4843
err := option.Apply(selector)
4944
assert.Nil(t, err)
5045
assert.Equal(t, engine, selector.engine)
51-
5246
})
5347
t.Run("second", func(t *testing.T) {
54-
5548
engine1 := &testScriptEngine{value: 1}
5649
engine2 := &testScriptEngine{value: 2}
5750

@@ -68,26 +61,20 @@ func Test_ScriptEngine(t *testing.T) {
6861

6962
assert.Equal(t, engine1, selector.engine)
7063
assert.NotEqual(t, engine2, selector.engine)
71-
7264
})
73-
7465
}
7566

7667
func Test_QueryOptions(t *testing.T) {
77-
7868
t.Run("first", func(t *testing.T) {
79-
8069
input := &option.QueryOptions{AllowMapReferenceByIndex: true, AllowStringReferenceByIndex: true}
8170
option := QueryOptions(input)
8271
selector := &Selector{}
8372

8473
err := option.Apply(selector)
8574
assert.Nil(t, err)
8675
assert.Equal(t, input, selector.Options)
87-
8876
})
8977
t.Run("second", func(t *testing.T) {
90-
9178
input1 := &option.QueryOptions{AllowMapReferenceByIndex: true, AllowStringReferenceByIndex: true}
9279
input2 := &option.QueryOptions{AllowMapReferenceByIndex: false, AllowStringReferenceByIndex: false}
9380

@@ -104,7 +91,5 @@ func Test_QueryOptions(t *testing.T) {
10491

10592
assert.Equal(t, input1, selector.Options)
10693
assert.NotEqual(t, input2, selector.Options)
107-
10894
})
109-
11095
}

0 commit comments

Comments
 (0)