Skip to content

Commit 380e8b2

Browse files
committed
[git-packetline] 'blocking-io' feature toggle and tests'blocking-io'
feature toggle and tests
1 parent ad7c14f commit 380e8b2

File tree

10 files changed

+264
-221
lines changed

10 files changed

+264
-221
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ check: ## Build all code in suitable configurations
9292
&& cargo check --features pack-cache-lru-dynamic \
9393
&& cargo check
9494
cd git-packetline && cargo check --all-features \
95-
&& cargo check
95+
&& cargo check \
96+
&& cargo check --features blocking-io
9697
cd git-protocol && cargo check --all-features \
9798
&& cargo check
9899
cd git-url && cargo check --all-features \
@@ -118,6 +119,7 @@ unit-tests: ## run all unit tests
118119
cargo test --all --no-fail-fast
119120
cd git-features && cargo test && cargo test --all-features
120121
cd git-odb && cargo test && cargo test --all-features
122+
cd git-packetline && cargo test && cargo test --all-features
121123
cd git-transport && cargo test \
122124
&& cargo test --features http-client-curl \
123125
&& cargo test --no-default-features

git-packetline/Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ doctest = false
1313

1414
[features]
1515
serde1 = ["serde", "bstr/serde1"]
16+
blocking-io = []
17+
18+
[[test]]
19+
name = "async-packetline"
20+
path = "tests/async-packetline.rs"
21+
required-features = []
22+
23+
[[test]]
24+
name = "blocking-packetline"
25+
path = "tests/blocking-packetline.rs"
26+
required-features = ["blocking-io"]
27+
1628

1729
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1830

0 commit comments

Comments
 (0)