Skip to content

Commit

Permalink
fix: Fixed makefile screenshots target (#252)
Browse files Browse the repository at this point in the history
* fix: fixed makefile screenshots target

* fix: plugged unexpected mysterious coverage drop
  • Loading branch information
pamburus authored May 9, 2024
1 parent 7165956 commit 62c1f72
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [".", "crate/encstr"]
[workspace.package]
repository = "https://github.com/pamburus/hl"
authors = ["Pavel Ivanov <[email protected]>"]
version = "0.29.2"
version = "0.29.3-alpha.1"
edition = "2021"
license = "MIT"

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ clean: contrib-build

## Create screenshots
screenshots: build $(THEMES:%=screenshot-%)
.PHONY: screenshots

screenshot-%: build contrib-screenshots
@defaults write org.alacritty NSRequiresAquaSystemAppearance -bool yes
Expand Down
10 changes: 10 additions & 0 deletions src/scanning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1044,4 +1044,14 @@ mod tests {
]
)
}

#[test]
fn test_buf_factory_recycle() {
let factory = BufFactory::new(10);
let mut buf = factory.new_buf();
buf.extend_from_slice(b"test");
factory.recycle(buf);
let buf = factory.new_buf();
assert_eq!(buf, b"");
}
}

0 comments on commit 62c1f72

Please sign in to comment.