MCPcopy Create free account
hub / github.com/github/gh-aw / TestCacheMemoryDirFor_ValidIDs

Function TestCacheMemoryDirFor_ValidIDs

pkg/workflow/cache_id_validation_test.go:81–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

79}
80
81func TestCacheMemoryDirFor_ValidIDs(t *testing.T) {
82 assert.Equal(t, "/tmp/gh-aw/cache-memory", cacheMemoryDirFor("default"))
83 assert.Equal(t, "/tmp/gh-aw/cache-memory", cacheMemoryDirFor(""))
84 assert.Equal(t, "/tmp/gh-aw/cache-memory-session", cacheMemoryDirFor("session"))
85 assert.Equal(t, "/tmp/gh-aw/cache-memory-my-cache", cacheMemoryDirFor("my-cache"))
86}
87
88func TestCacheMemoryDirFor_InvalidIDPanics(t *testing.T) {
89 assert.Panics(t, func() {

Callers

nothing calls this directly

Calls 1

cacheMemoryDirForFunction · 0.85

Tested by

no test coverage detected