Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
added generic type. ensure it'll be created correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Oct 9, 2019
1 parent 1fc220b commit 5524f17
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/engine/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,19 @@ func (suite *FactoryTestSuite) TestCreate_Ruby() {
require.NotNil(suite.T(), testEngine)
}

func (suite *FactoryTestSuite) TestCreate_Generic() {
//setup
suite.Config.EXPECT().SetDefault(gomock.Any(), gomock.Any()).MinTimes(1)

//test
testEngine, cerr := engine.Create("generic", suite.PipelineData, suite.Config, suite.Scm)

//assert
require.NoError(suite.T(), cerr)
require.NotNil(suite.T(), testEngine)
}


// In order for 'go test' to run this suite, we need to create
// a normal test function and pass our suite to suite.Run
func TestFactoryTestSuite(t *testing.T) {
Expand Down

0 comments on commit 5524f17

Please sign in to comment.