• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

facet-rs / facet / 14691847493

27 Apr 2025 12:05PM UTC coverage: 57.599% (+0.02%) from 57.58%
14691847493

Pull #459

github

web-flow
Merge 147beeaf9 into 3871af547
Pull Request #459: facet-args: Handle multiple positional args

3 of 3 new or added lines in 1 file covered. (100.0%)

7186 of 12476 relevant lines covered (57.6%)

75.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/facet-dev/src/readme.rs
1
pub struct GenerateReadmeOpts {
2
    pub crate_name: String,
3
    pub input: String,
4
}
5

6
pub fn generate(opts: GenerateReadmeOpts) -> String {
×
7
    // Generate header by replacing "{CRATE}" in an included header template
×
8
    let header_template = include_str!("header.md");
×
9
    let header = header_template.replace("{CRATE}", &opts.crate_name);
×
10

×
11
    // The main template content, passed in via `opts.input`
×
12
    let template_content = opts.input;
×
13

×
14
    // Include footer template
×
15
    let footer = include_str!("footer.md").to_string();
×
16

×
17
    // Combine header, template, and footer with newlines
×
18
    format!("{}\n{}\n{}", header, template_content, footer)
×
19
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc