MCPcopy Index your code
hub / github.com/larksuite/cli / TestBaseMissingFileIOErrorIsInternal

Function TestBaseMissingFileIOErrorIsInternal

shortcuts/base/base_errors_test.go:186–194  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestBaseMissingFileIOErrorIsInternal(t *testing.T) {
187 p, ok := errs.ProblemOf(baseMissingFileIOError("file operations require a FileIO provider"))
188 if !ok {
189 t.Fatal("expected typed error")
190 }
191 if p.Category != errs.CategoryInternal || p.Subtype != errs.SubtypeFileIO {
192 t.Fatalf("category/subtype=%s/%s", p.Category, p.Subtype)
193 }
194}
195
196type assertErr struct{}
197

Callers

nothing calls this directly

Calls 2

ProblemOfFunction · 0.92
baseMissingFileIOErrorFunction · 0.85

Tested by

no test coverage detected