-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update to use
prettyplease
in snapshots
Now there is no need to ignore the snapshot tests in CI.
- Loading branch information
Showing
45 changed files
with
1,625 additions
and
1,587 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,4 +45,5 @@ node_modules/ | |
/test-ledger | ||
|
||
**/*.pem | ||
lcov.info | ||
lcov.info | ||
codecov.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_01_str.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = String; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select 'i ❤\u{fe0f} edgedb'"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = String; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select 'i ❤\u{fe0f} edgedb'"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_02_bool.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = bool; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select true"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = bool; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select true"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_03_int64.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = i64; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select 3"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = i64; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select 3"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_04_float64.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = f64; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select 314e-2"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = f64; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select 314e-2"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_05_bigint.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::num_bigint::BigInt; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select 42n"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::num_bigint::BigInt; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select 42n"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_06_decimal.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::num_bigint::BigInt; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select 42e+100n"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::num_bigint::BigInt; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select 42e+100n"; | ||
} | ||
} |
42 changes: 21 additions & 21 deletions
42
crates/edgedb_codegen/tests/compile/codegen/case_07_uuid.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
fn main() { | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
#[doc = r" Execute the desired query."] | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
#[doc = r" Compose the query as part of a larger transaction."] | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::uuid::Uuid; | ||
#[doc = r" The original query string provided to the macro. Can be reused in your codebase."] | ||
pub const QUERY: &str = "select <uuid>'a5ea6360-75bd-4c20-b69c-8f317b0d2857'"; | ||
} | ||
pub mod example { | ||
use ::edgedb_codegen::exports as e; | ||
/// Execute the desired query. | ||
#[cfg(feature = "query")] | ||
pub async fn query( | ||
client: &e::edgedb_tokio::Client, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
client.query_required_single(QUERY, &()).await | ||
} | ||
/// Compose the query as part of a larger transaction. | ||
#[cfg(feature = "query")] | ||
pub async fn transaction( | ||
conn: &mut e::edgedb_tokio::Transaction, | ||
) -> core::result::Result<Output, e::edgedb_errors::Error> { | ||
conn.query_required_single(QUERY, &()).await | ||
} | ||
pub type Input = (); | ||
pub type Output = e::uuid::Uuid; | ||
/// The original query string provided to the macro. Can be reused in your codebase. | ||
pub const QUERY: &str = "select <uuid>'a5ea6360-75bd-4c20-b69c-8f317b0d2857'"; | ||
} | ||
} |
Oops, something went wrong.