MCPcopy Create free account
hub / github.com/hashintel/hash / test_messages

Function test_messages

libs/error-stack/tests/test_attach_printable.rs:9–20  ·  view source on GitHub ↗
(report: &Report<E>)

Source from the content-addressed store, hash-verified

7use error_stack::{AttachmentKind, FrameKind, FutureExt as _, Report, ResultExt as _};
8
9fn test_messages<E>(report: &Report<E>) {
10 assert_eq!(
11 remove_builtin_messages(messages(report)),
12 remove_builtin_messages([
13 "context B",
14 "context A",
15 "printable B",
16 "printable A",
17 "root error"
18 ])
19 );
20}
21
22fn test_kinds<E>(report: &Report<E>) {
23 assert_kinds!(

Callers 3

attach_opaqueFunction · 0.70
attach_resultFunction · 0.70
attach_futureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected