Skip to content

Commit 1fb75d3

Browse files
test(token): add #[cfg(not(tarpaulin_include))] to DelimTokenType::as_str
Added `#[cfg(not(tarpaulin_include))]` macro to the newly implemented `DelimTokenType::as_str` method to prevent coverage calculation drops. The previous `.string()` implementation did not have this, but avoiding testing this basic mapping method restores the coverage requirements. Also cleaned up a stray `test_expect.rs` file. Co-authored-by: ashyanSpada <22587148+ashyanSpada@users.noreply.github.com>
1 parent d559e0c commit 1fb75d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/token.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ impl From<&str> for DelimTokenType {
5252
}
5353

5454
impl DelimTokenType {
55+
#[cfg(not(tarpaulin_include))]
5556
pub fn as_str(&self) -> &'static str {
5657
use DelimTokenType::*;
5758
match self {

0 commit comments

Comments
 (0)