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

Function context

libs/error-stack/tests/test_serialize.rs:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32#[test]
33fn context() {
34 let _guard = prepare();
35
36 let report = create_report()
37 .attach(PrintableA(2))
38 .change_context(ContextA(2));
39
40 assert_ron_snapshot!(report);
41}
42
43#[test]
44fn multiple_sources() {

Callers

nothing calls this directly

Calls 6

PrintableAClass · 0.85
ContextAClass · 0.85
prepareFunction · 0.70
create_reportFunction · 0.70
change_contextMethod · 0.45
attachMethod · 0.45

Tested by

no test coverage detected