summaryrefslogtreecommitdiff
path: root/vendor/github.com/onsi/ginkgo/extensions
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-11-01 10:10:57 +0000
committerValentin Rothberg <rothberg@redhat.com>2019-11-01 11:48:26 +0100
commite22777c3fcde4d2d55e9104567ed2107c15db9ff (patch)
tree2040f33104d71f14b3dacd1b2834c704d95c4819 /vendor/github.com/onsi/ginkgo/extensions
parent2dae2577ccbeef502a8783c892a6c9e346153532 (diff)
downloadpodman-e22777c3fcde4d2d55e9104567ed2107c15db9ff.tar.gz
podman-e22777c3fcde4d2d55e9104567ed2107c15db9ff.tar.bz2
podman-e22777c3fcde4d2d55e9104567ed2107c15db9ff.zip
Bump github.com/onsi/ginkgo from 1.10.1 to 1.10.3
Bumps [github.com/onsi/ginkgo](https://github.com/onsi/ginkgo) from 1.10.1 to 1.10.3. - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v1.10.1...v1.10.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/github.com/onsi/ginkgo/extensions')
-rw-r--r--vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go b/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go
index 5fa645bce..93f3bc3b0 100644
--- a/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go
+++ b/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go
@@ -22,18 +22,15 @@ func (t TableEntry) generateIt(itBody reflect.Value) {
return
}
- values := []reflect.Value{}
+ values := make([]reflect.Value, len(t.Parameters))
+ iBodyType := itBody.Type()
for i, param := range t.Parameters {
- var value reflect.Value
-
if param == nil {
- inType := itBody.Type().In(i)
- value = reflect.Zero(inType)
+ inType := iBodyType.In(i)
+ values[i] = reflect.Zero(inType)
} else {
- value = reflect.ValueOf(param)
+ values[i] = reflect.ValueOf(param)
}
-
- values = append(values, value)
}
body := func() {