MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / msg

Function msg

packages/core/src/merger/__tests__/algorithms.test.ts:62–67  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

60describe('detectConflictsInMessages', () => {
61 it('detects conflicts for same sender/timestamp but different content from different files', () => {
62 const msg = (content: string): MergerMessage => ({
63 senderPlatformId: 'u1',
64 timestamp: 100,
65 type: 0,
66 content,
67 })
68 const result = detectConflictsInMessages([
69 { msg: msg('hello'), source: 'file1.txt', platform: 'qq' },
70 { msg: msg('world'), source: 'file2.txt', platform: 'qq' },

Callers 1

algorithms.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected