MCPcopy
hub / github.com/dosco/graphjin / TestLocal_RejectsKeyEscape

Function TestLocal_RejectsKeyEscape

core/fstable/local_test.go:156–162  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

154}
155
156func TestLocal_RejectsKeyEscape(t *testing.T) {
157 b, _ := newLocal(t)
158 _, err := b.Stat(context.Background(), "../etc/passwd")
159 if err == nil {
160 t.Errorf("expected error on key escape, got nil")
161 }
162}
163
164func TestLocal_PresignReturnsFileURL(t *testing.T) {
165 b, _ := newLocal(t)

Callers

nothing calls this directly

Calls 2

newLocalFunction · 0.85
StatMethod · 0.65

Tested by

no test coverage detected