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

Function finish_with_ok

libs/error-stack/src/sink.rs:620–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

618
619 #[test]
620 fn finish_with_ok() {
621 let sink: ReportSink<TestError> = ReportSink::new();
622
623 let value = sink.finish_with(|| 8).expect("should have succeeded");
624 assert_eq!(value, 8);
625 }
626
627 #[test]
628 fn finish_default() {

Callers

nothing calls this directly

Calls 2

expectMethod · 0.45
finish_withMethod · 0.45

Tested by

no test coverage detected