MCPcopy
hub / github.com/rs/xid / BenchmarkFromString

Function BenchmarkFromString

id_test.go:270–276  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

268}
269
270func BenchmarkFromString(b *testing.B) {
271 b.RunParallel(func(pb *testing.PB) {
272 for pb.Next() {
273 _, _ = FromString("9m4e2mr0ui3e8a215n4g")
274 }
275 })
276}
277
278func TestFromStringQuick(t *testing.T) {
279 f := func(id1 ID, c byte) bool {

Callers

nothing calls this directly

Calls 1

FromStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…