MCPcopy Create free account
hub / github.com/docker/docker-agent / TestIsRelativeSessionRef

Function TestIsRelativeSessionRef

pkg/session/store_test.go:963–971  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

961}
962
963func TestIsRelativeSessionRef(t *testing.T) {
964 t.Parallel()
965
966 assert.True(t, IsRelativeSessionRef("-1"))
967 assert.True(t, IsRelativeSessionRef("-10"))
968 assert.False(t, IsRelativeSessionRef("550e8400-e29b-41d4-a716-446655440000"))
969 assert.False(t, IsRelativeSessionRef(""))
970 assert.False(t, IsRelativeSessionRef("abc123"))
971}
972
973func TestParseRelativeSessionRef(t *testing.T) {
974 t.Parallel()

Callers

nothing calls this directly

Calls 1

IsRelativeSessionRefFunction · 0.85

Tested by

no test coverage detected