MCPcopy Index your code
hub / github.com/msgbyte/tailchat / insertTestData

Function insertTestData

server/test/utils.ts:65–72  ·  view source on GitHub ↗
(entity: any)

Source from the content-addressed store, hash-verified

63 });
64
65 const insertTestData = async (entity: any) => {
66 if (typeof service.adapter !== 'object') {
67 throw new Error('无法调用 insertTestData');
68 }
69 const doc = await service.adapter.insert(entity);
70 testDataStack.push(doc);
71 return doc;
72 };
73
74 return {
75 broker,

Callers 6

user.spec.tsFile · 0.85
dmlist.spec.tsFile · 0.85
message.spec.tsFile · 0.85
group.spec.tsFile · 0.85
app.spec.tsFile · 0.85
tasks.spec.tsFile · 0.85

Calls 1

insertMethod · 0.65

Tested by

no test coverage detected