mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
18 lines
668 B
Python
18 lines
668 B
Python
import pytest
|
|
|
|
def test_default(codeql, rust):
|
|
codeql.database.create()
|
|
|
|
@pytest.mark.parametrize("features",
|
|
[
|
|
pytest.param(p,
|
|
marks=pytest.mark.ql_test(expected=f".{e}.expected"))
|
|
for p, e in (
|
|
("foo", "foo"),
|
|
("bar", "bar"),
|
|
("*", "all"),
|
|
("foo,bar", "all"))
|
|
])
|
|
def test_features(codeql, rust, features):
|
|
codeql.database.create(extractor_option=f"cargo_features={features}")
|