MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / fmt_can_add_doc_comments

Function fmt_can_add_doc_comments

cranelift/srcgen/src/lib.rs:520–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

518
519 #[test]
520 fn fmt_can_add_doc_comments() {
521 let mut fmt = Formatter::new(Language::Rust);
522 fmt.doc_comment("documentation\nis\ngood");
523 let expected_lines = vec!["/// documentation\n", "/// is\n", "/// good\n"];
524 assert_eq!(fmt.lines, expected_lines);
525 }
526
527 #[test]
528 fn fmt_can_add_doc_comments_with_empty_lines() {

Callers

nothing calls this directly

Calls 2

doc_commentMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected