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

Function TestGenerateRandomID

client/pkg/stringid/stringid_test.go:5–11  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestGenerateRandomID(t *testing.T) {
6 id := GenerateRandomID()
7
8 if len(id) != fullLen {
9 t.Fatalf("Id returned is incorrect: %s", id)
10 }
11}
12
13func TestTruncateID(t *testing.T) {
14 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…