From beb6aeafe40da82ae855c0923a26c27fbbfcc5c1 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Sat, 25 Mar 2017 20:43:42 -0300 Subject: [PATCH] more boilerplate tests --- pipeline/brew/brew_test.go | 4 ++++ pipeline/build/build_test.go | 4 ++++ pipeline/defaults/defaults_test.go | 4 ++++ pipeline/release/release_test.go | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/pipeline/brew/brew_test.go b/pipeline/brew/brew_test.go index c221eb8ea..5eae99a7b 100644 --- a/pipeline/brew/brew_test.go +++ b/pipeline/brew/brew_test.go @@ -7,6 +7,10 @@ import ( "github.com/stretchr/testify/assert" ) +func TestDescription(t *testing.T) { + assert.NotEmpty(t, Pipe{}.Description()) +} + func TestNameWithDash(t *testing.T) { assert.Equal(t, formulaNameFor("some-binary"), "SomeBinary") } diff --git a/pipeline/build/build_test.go b/pipeline/build/build_test.go index 52da0296b..bde68534e 100644 --- a/pipeline/build/build_test.go +++ b/pipeline/build/build_test.go @@ -6,6 +6,10 @@ import ( "github.com/stretchr/testify/assert" ) +func TestDescription(t *testing.T) { + assert.NotEmpty(t, Pipe{}.Description()) +} + func TestValid(t *testing.T) { assert.True(t, valid("windows", "386")) assert.True(t, valid("linux", "386")) diff --git a/pipeline/defaults/defaults_test.go b/pipeline/defaults/defaults_test.go index dee65285b..2edecd02a 100644 --- a/pipeline/defaults/defaults_test.go +++ b/pipeline/defaults/defaults_test.go @@ -8,6 +8,10 @@ import ( "github.com/stretchr/testify/assert" ) +func TestDescription(t *testing.T) { + assert.NotEmpty(t, Pipe{}.Description()) +} + func TestFillBasicData(t *testing.T) { assert := assert.New(t) diff --git a/pipeline/release/release_test.go b/pipeline/release/release_test.go index 410d72d8b..b0df3eb54 100644 --- a/pipeline/release/release_test.go +++ b/pipeline/release/release_test.go @@ -7,6 +7,10 @@ import ( "github.com/stretchr/testify/assert" ) +func TestDescription(t *testing.T) { + assert.NotEmpty(t, Pipe{}.Description()) +} + func TestDescription(t *testing.T) { assert := assert.New(t) desc := description("0abf342 some message")