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

Method HasSuffix

core/assert/string.go:90–92  ·  view source on GitHub ↗

HasSuffix asserts that the supplied string ends with with substr.

(substr string)

Source from the content-addressed store, hash-verified

88
89// HasSuffix asserts that the supplied string ends with with substr.
90func (o OnString) HasSuffix(substr string) bool {
91 return o.Compare(o.value, "ends with", substr).Test(strings.HasSuffix(o.value, substr))
92}

Callers 10

parseDevicesFunction · 0.45
ListExecutablesMethod · 0.45
ExampleStringFragmentsFunction · 0.45
FindExtensionFunction · 0.45
RewriteFilesFunction · 0.45
OpenMethod · 0.45
hasSuffixFunction · 0.45
runFunction · 0.45
VerifyTypeFunction · 0.45
RunMethod · 0.45

Calls 2

TestMethod · 0.80
CompareMethod · 0.45

Tested by 1

ExampleStringFragmentsFunction · 0.36