MCPcopy Create free account
hub / github.com/FastLED/FastLED / file

Function file

ci/lint_cpp_rs/src/lib.rs:7650–7656  ·  view source on GitHub ↗
(path: &str, content: &str)

Source from the content-addressed store, hash-verified

7648 use super::*;
7649
7650 fn file(path: &str, content: &str) -> FileContent {
7651 FileContent {
7652 path: normalize_path(path),
7653 content: content.to_string(),
7654 lines: content.lines().map(str::to_string).collect(),
7655 }
7656 }
7657
7658 #[test]
7659 fn help_parse_exits_without_listing_checkers() {

Callers 1

Calls 3

normalize_pathFunction · 0.70
to_stringMethod · 0.45
mapMethod · 0.45

Tested by 1