Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nonebot/nonebot2
/ test_segment_copy
Function
test_segment_copy
tests/test_adapters/test_message.py:87–91 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
85
86
87
def
test_segment_copy():
88
origin = FakeMessageSegment.text(
"text"
)
89
copy = origin.copy()
90
assert origin is not copy
91
assert origin == copy
92
93
94
def
test_message_add():
Callers
nothing calls this directly
Calls
2
text
Method · 0.80
copy
Method · 0.45
Tested by
no test coverage detected