1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/cmd/golangBuild_generated_test.go
Oliver Nocon 9a78fabc89
feat(golangBuild): add new step for building go (#3178)
* feat(golangBuild): add new step for building go

* chore(golangBuild): increase test coverage

* remove indirect dependencies

* cleanup go.sum

* chore: remove trailing spaces

* chore(golangBuild): cleanup params, add groovy wrapper

* fix: update docker options

* update docs

* update installation according to https://golang.org/doc/go-get-install-deprecation

* fix: update installation

* update groovy test exclusion

* Update vars/golangBuild.groovy

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* update branch

* address PR feedback

* fix compilation error

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2021-12-06 16:17:59 +01:00

18 lines
330 B
Go

package cmd
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGolangBuildCommand(t *testing.T) {
t.Parallel()
testCmd := GolangBuildCommand()
// only high level testing performed - details are tested in step generation procedure
assert.Equal(t, "golangBuild", testCmd.Use, "command name incorrect")
}