Expand description

This test exercises the update_crates tool against a golden project.

To add “test cases,” define new crates in ./local_registry_sources and include them in ./BUILD.gn under uses_local_registry_test_data’s sources to ensure they’re copied to CQ’s test runners. Any crates in ./local_registry_sources on the test runner will be included in the custom local registry used for update queries.

Once the crates are in the test registry, depend on those crates in ./uses_local_registry/Cargo.toml and add the expected post-update state to ./uses_local_registry/Cargo.expected.toml.

The update_crates tool can also be configured at ./uses_local_registry/outdated.toml.

Macros

try 🔒
try 🔒
try 🔒
try 🔒
try 🔒
try 🔒

Structs

IndexEntry 🔒
TestArgs 🔒
an integration test for the update_crates host tool
from https://doc.rust-lang.org/cargo/reference/registries.html:
__Visitor 🔒
__Visitor 🔒
__Visitor 🔒

Enums

DepKind 🔒
__Field 🔒
__Field 🔒
__Field 🔒

Constants

FIELDS 🔒
FIELDS 🔒
VARIANTS 🔒

Statics

TEST_DIR 🔒
We put the temp dir in a static so that a panic can suppress its cleanup routine.

Traits

Functions

from https://doc.rust-lang.org/cargo/reference/registries.html:
main 🔒
Creates a test registry at the provided path, returning the contents of a .cargo/config.toml that makes use of it.