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

Function namespace_include_snippet

ci/lint_cpp_rs/src/lib.rs:2640–2646  ·  view source on GitHub ↗
(line: &str)

Source from the content-addressed store, hash-verified

2638}
2639
2640fn namespace_include_snippet(line: &str) -> String {
2641 let text = line.trim();
2642 if text.chars().count() <= 50 {
2643 return text.to_string();
2644 }
2645 text.chars().take(47).collect::<String>() + "..."
2646}
2647
2648fn namespace_include_message(
2649 include_snippet: &str,

Callers 2

check_file_contentMethod · 0.85

Calls 3

trimMethod · 0.80
countMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected