Skip to content

Commit

Permalink
test: ignore test helpers in coverage results
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Sep 12, 2021
1 parent 2f95cf8 commit 1ea9d0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use conventional::commit::Commit;
use conventional::commit::CommitConfig;
use conventional::version::{parse_pre_release, VersionIncrement};
use conventional_commit_parser::commit::{CommitType, ConventionalCommit};
use conventional_commit_parser::parse_footers;
use git::repository::Repository;
use git2::{Oid, RebaseOptions};
use hook::Hook;
Expand All @@ -41,7 +42,6 @@ use std::io::Write;
use std::path::{Path, PathBuf};
use std::process::{exit, Command, Stdio};
use tempfile::TempDir;
use conventional_commit_parser::parse_footers;

pub type CommitsMetadata = HashMap<CommitType, CommitConfig>;

Expand Down Expand Up @@ -349,7 +349,6 @@ impl CocoGitto {
footer: Option<String>,
is_breaking_change: bool,
) -> Result<()> {

// Ensure commit type is known
let commit_type = CommitType::from(commit_type);

Expand All @@ -366,7 +365,8 @@ impl CocoGitto {
footers,
summary,
is_breaking_change,
}.to_string();
}
.to_string();

// Validate the message
conventional_commit_parser::parse(&conventional_message)?;
Expand Down
1 change: 1 addition & 0 deletions tests/helper.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(dead_code)]
#![cfg(not(tarpaulin_include))]

use anyhow::Result;
use cocogitto::CONFIG_PATH;
Expand Down

0 comments on commit 1ea9d0f

Please sign in to comment.