github.com/pf-qiu/concourse/v6@v6.7.3-0.20201207032516-1f455d73275f/atc/exec/identity_step_test.go (about) 1 package exec_test 2 3 import ( 4 "context" 5 6 . "github.com/pf-qiu/concourse/v6/atc/exec" 7 "github.com/pf-qiu/concourse/v6/atc/exec/execfakes" 8 9 . "github.com/onsi/ginkgo" 10 . "github.com/onsi/gomega" 11 ) 12 13 var _ = Describe("Identity", func() { 14 var ( 15 state *execfakes.FakeRunState 16 17 step IdentityStep 18 19 stepOk bool 20 stepErr error 21 ) 22 23 BeforeEach(func() { 24 state = new(execfakes.FakeRunState) 25 }) 26 27 JustBeforeEach(func() { 28 stepOk, stepErr = step.Run(context.Background(), state) 29 }) 30 31 Describe("Run", func() { 32 It("is a no-op", func() { 33 Expect(stepErr).ToNot(HaveOccurred()) 34 Expect(stepOk).To(BeTrue()) 35 }) 36 }) 37 })