summaryrefslogtreecommitdiffstats
path: root/pkg/utils
diff options
context:
space:
mode:
authorBlakeMScurr <blakemscurr@gmail.com>2018-11-30 11:04:08 +1300
committerBlakeMScurr <blakemscurr@gmail.com>2018-11-30 11:04:08 +1300
commit643cdd3461007fafb1fd9284a65b54f36e55ddac (patch)
tree0266b3c0e5184e0da054d4310a7b301e208d056c /pkg/utils
parent5c70d2724b508c3021558162fbfd9792c2d77e63 (diff)
Add simple comments to uncommented functions.
Diffstat (limited to 'pkg/utils')
-rw-r--r--pkg/utils/utils_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/utils/utils_test.go b/pkg/utils/utils_test.go
index 21e1d5031..de86eaef8 100644
--- a/pkg/utils/utils_test.go
+++ b/pkg/utils/utils_test.go
@@ -7,6 +7,7 @@ import (
"github.com/stretchr/testify/assert"
)
+// TestSplitLines is a function
func TestSplitLines(t *testing.T) {
type scenario struct {
multilineString string
@@ -36,6 +37,7 @@ func TestSplitLines(t *testing.T) {
}
}
+// TestWithPadding is a function
func TestWithPadding(t *testing.T) {
type scenario struct {
str string
@@ -61,6 +63,7 @@ func TestWithPadding(t *testing.T) {
}
}
+// TestTrimTrailingNewline is a function
func TestTrimTrailingNewline(t *testing.T) {
type scenario struct {
str string
@@ -83,6 +86,7 @@ func TestTrimTrailingNewline(t *testing.T) {
}
}
+// TestNormalizeLinefeeds is a function
func TestNormalizeLinefeeds(t *testing.T) {
type scenario struct {
byteArray []byte
@@ -116,6 +120,7 @@ func TestNormalizeLinefeeds(t *testing.T) {
}
}
+// TestResolvePlaceholderString is a function
func TestResolvePlaceholderString(t *testing.T) {
type scenario struct {
templateString string
@@ -169,6 +174,7 @@ func TestResolvePlaceholderString(t *testing.T) {
}
}
+// TestDisplayArraysAligned is a function
func TestDisplayArraysAligned(t *testing.T) {
type scenario struct {
input [][]string
@@ -197,10 +203,12 @@ type myDisplayable struct {
type myStruct struct{}
+// GetDisplayStrings is a function
func (d *myDisplayable) GetDisplayStrings() []string {
return d.strings
}
+// TestGetDisplayStringArrays is a function
func TestGetDisplayStringArrays(t *testing.T) {
type scenario struct {
input []Displayable
@@ -222,6 +230,7 @@ func TestGetDisplayStringArrays(t *testing.T) {
}
}
+// TestRenderDisplayableList is a function
func TestRenderDisplayableList(t *testing.T) {
type scenario struct {
input []Displayable
@@ -263,6 +272,7 @@ func TestRenderDisplayableList(t *testing.T) {
}
}
+// TestRenderList is a function
func TestRenderList(t *testing.T) {
type scenario struct {
input interface{}
@@ -301,6 +311,7 @@ func TestRenderList(t *testing.T) {
}
}
+// TestGetPaddedDisplayStrings is a function
func TestGetPaddedDisplayStrings(t *testing.T) {
type scenario struct {
stringArrays [][]string
@@ -321,6 +332,7 @@ func TestGetPaddedDisplayStrings(t *testing.T) {
}
}
+// TestGetPadWidths is a function
func TestGetPadWidths(t *testing.T) {
type scenario struct {
stringArrays [][]string
@@ -347,6 +359,7 @@ func TestGetPadWidths(t *testing.T) {
}
}
+// TestMin is a function
func TestMin(t *testing.T) {
type scenario struct {
a int
@@ -377,6 +390,7 @@ func TestMin(t *testing.T) {
}
}
+// TestIncludesString is a function
func TestIncludesString(t *testing.T) {
type scenario struct {
list []string