mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-27 19:23:01 +00:00
Add tests for git2
This commit is contained in:
parent
71a72e7c67
commit
603c1950fe
@ -118,3 +118,19 @@ mod bstr {
|
||||
"x'0001020304'" == BString::from(b"\x00\x01\x02\x03\x04")
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(feature = "git2")]
|
||||
mod git2 {
|
||||
use super::*;
|
||||
use sqlx::types::git2::Oid;
|
||||
|
||||
test_type!(Oid(
|
||||
Sqlite,
|
||||
"x'0000000000000000000000000000000000000000'" == Oid::zero()
|
||||
));
|
||||
test_type!(Oid(
|
||||
Sqlite,
|
||||
"x'000102030405060708090a0b0c0d0e0f10111213'"
|
||||
== Oid::from_str("000102030405060708090a0b0c0d0e0f10111213")
|
||||
));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user