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

Method HasPrefix

core/assert/string.go:85–87  ·  view source on GitHub ↗

HasPrefix asserts that the supplied string start with substr.

(substr string)

Source from the content-addressed store, hash-verified

83
84// HasPrefix asserts that the supplied string start with substr.
85func (o OnString) HasPrefix(substr string) bool {
86 return o.Compare(o.value, "starts with", substr).Test(strings.HasPrefix(o.value, substr))
87}
88
89// HasSuffix asserts that the supplied string ends with with substr.
90func (o OnString) HasSuffix(substr string) bool {

Callers 15

PathMethod · 0.45
expandHomeDirFunction · 0.45
parseDevicesFunction · 0.45
parsePackagesMethod · 0.45
ParseListOutputFunction · 0.45
AbsFunction · 0.45
ContainsMethod · 0.45
UnzipFunction · 0.45
RootOfMethod · 0.45
FilterMethod · 0.45
getFlagUsageFunction · 0.45
ExampleStringFragmentsFunction · 0.45

Calls 2

TestMethod · 0.80
CompareMethod · 0.45

Tested by 2

ExampleStringFragmentsFunction · 0.36
TestCursorFunction · 0.36