MCPcopy Index your code
hub / github.com/moby/moby / TestGenerateRandomID

Function TestGenerateRandomID

daemon/internal/stringid/stringid_test.go:7–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

5)
6
7func TestGenerateRandomID(t *testing.T) {
8 id := GenerateRandomID()
9
10 if len(id) != fullLen {
11 t.Fatalf("Id returned is incorrect: %s", id)
12 }
13}
14
15func TestTruncateID(t *testing.T) {
16 tests := []struct {

Callers

nothing calls this directly

Calls 1

GenerateRandomIDFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…