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

Function testFS

internal/skillcontent/reader_test.go:15–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13)
14
15func testFS() fstest.MapFS {
16 return fstest.MapFS{
17 "lark-calendar/SKILL.md": {Data: []byte("---\nname: lark-calendar\nversion: 1.0.0\ndescription: \"Calendar skill\"\nmetadata:\n requires:\n bins: [\"lark-cli\"]\n cliHelp: \"lark-cli calendar --help\"\n---\nbody\n")},
18 "lark-calendar/references/agenda.md": {Data: []byte("# Agenda")},
19 "lark-calendar/references/create.md": {Data: []byte("# Create")},
20 "lark-calendar/assets/tpl.html": {Data: []byte("<html></html>")},
21 "lark-im/SKILL.md": {Data: []byte("no frontmatter here\n")},
22 "lark-im/references/send.md": {Data: []byte("# Send")},
23 }
24}
25
26func TestList(t *testing.T) {
27 r := New(testFS())

Callers 4

TestListFunction · 0.85
TestListPathFunction · 0.85
TestReadSkillFunction · 0.85
TestReadReferenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected