MCPcopy Create free account
hub / github.com/google/gapid / ThatSlice

Method ThatSlice

core/assert/slice.go:32–34  ·  view source on GitHub ↗

ThatSlice returns an OnSlice for assertions on slice type objects. Calling this with a non slice type will result in panics.

(slice interface{})

Source from the content-addressed store, hash-verified

30// ThatSlice returns an OnSlice for assertions on slice type objects.
31// Calling this with a non slice type will result in panics.
32func (a Assertion) ThatSlice(slice interface{}) OnSlice {
33 return OnSlice{Assertion: a, slice: slice}
34}
35
36// IsEmpty asserts that the slice was of length 0
37func (o OnSlice) IsEmpty() bool {

Callers 15

TestParseLogFunction · 0.80
TestEmptyEnvFunction · 0.80
TestEnvSetFunction · 0.80
TestEnvAddPathStartFunction · 0.80
TestEnvAddPathEndFunction · 0.80
TestParseDevicesFunction · 0.80
TestJunctionFunction · 0.80
TestDiffFunction · 0.80
TestDiffLimitFunction · 0.80
TestCustomDiffFunction · 0.80
TestReadWriteFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestParseLogFunction · 0.64
TestEmptyEnvFunction · 0.64
TestEnvSetFunction · 0.64
TestEnvAddPathStartFunction · 0.64
TestEnvAddPathEndFunction · 0.64
TestParseDevicesFunction · 0.64
TestJunctionFunction · 0.64
TestDiffFunction · 0.64
TestDiffLimitFunction · 0.64
TestCustomDiffFunction · 0.64
TestReadWriteFunction · 0.64