mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
refactor(sqlite): Resolve duplicate test target warning for macros.rs (#3988)
* refactor(sqlite): Resolve duplicate test target warning for macros.rs Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> * refactor(sqlite): For macros tests, use _sqlite pseudo feature instead of #![cfg(...)] in the module Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com> --------- Signed-off-by: Joshua Potts <8704475+iamjpotts@users.noreply.github.com>
This commit is contained in:
parent
c01f51330a
commit
99ec41913c
4
.github/workflows/sqlx.yml
vendored
4
.github/workflows/sqlx.yml
vendored
@ -181,7 +181,7 @@ jobs:
|
||||
- run: >
|
||||
cargo build
|
||||
--no-default-features
|
||||
--test ${{ matrix.linking }}-macros
|
||||
--test sqlite-macros
|
||||
--features any,macros,${{ matrix.linking }},_unstable-all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
SQLX_OFFLINE: true
|
||||
@ -193,7 +193,7 @@ jobs:
|
||||
- run: >
|
||||
cargo test
|
||||
--no-default-features
|
||||
--test ${{ matrix.linking }}-macros
|
||||
--test sqlite-macros
|
||||
--features any,macros,${{ matrix.linking }},_unstable-all-types,runtime-${{ matrix.runtime }}
|
||||
env:
|
||||
DATABASE_URL: sqlite://tests/sqlite/sqlite.db
|
||||
|
||||
@ -299,12 +299,7 @@ required-features = ["sqlite"]
|
||||
[[test]]
|
||||
name = "sqlite-macros"
|
||||
path = "tests/sqlite/macros.rs"
|
||||
required-features = ["sqlite", "macros"]
|
||||
|
||||
[[test]]
|
||||
name = "sqlite-unbundled-macros"
|
||||
path = "tests/sqlite/macros.rs"
|
||||
required-features = ["sqlite-unbundled", "macros"]
|
||||
required-features = ["_sqlite", "macros"]
|
||||
|
||||
[[test]]
|
||||
name = "sqlite-derives"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user