Commit b0dd2860 authored by Ben Boeckel's avatar Ben Boeckel

test: prefer const rather than static globals

parent 99544e42
Pipeline #80630 passed with stage
......@@ -135,20 +135,20 @@ fn git_context_new(workspace_path: &Path) -> GitContext {
ctx
}
static ARBITRARY_COMMIT: &'static str = "9266430a205bc43fcb669a9b4825f2c69d36c3db";
const ARBITRARY_COMMIT: &'static str = "9266430a205bc43fcb669a9b4825f2c69d36c3db";
// These commits contain a submodule for testing merging and related tasks with them.
static BASE_COMMIT: &'static str = "6787f648d93d32e70aea9e94c85914422940a6c0";
static SUBMODULE_ADD_CUSTOM_NAME: &'static str = "d340326994009b57e70e0fc90730ba668d90dab4";
static SUBMODULE_UPDATE_COMMIT: &'static str = "1d1ac896e2908685d6c20f78821add835cb110e8";
static SUBMODULE_REWIND_COMMIT: &'static str = "6995e3989758531fdbd988ece628e7307ab59266";
static SUBMODULE_BRANCH1_COMMIT: &'static str = "6e8ae702722e39626ac686929234eea0dc3d48de";
static SUBMODULE_BRANCH2_COMMIT: &'static str = "0465e50432fcd101e88dc61ecd81ef89b611a991";
static SUBMODULE_UNMERGED_COMMIT: &'static str = "d8df6fab975c401632aecc366d34f9a91da82500";
static SUBMODULE_NOT_PRESENT_COMMIT: &'static str = "5c3eee710420e98fde8818a688bfbf2bb1a96ff8";
const BASE_COMMIT: &'static str = "6787f648d93d32e70aea9e94c85914422940a6c0";
const SUBMODULE_ADD_CUSTOM_NAME: &'static str = "d340326994009b57e70e0fc90730ba668d90dab4";
const SUBMODULE_UPDATE_COMMIT: &'static str = "1d1ac896e2908685d6c20f78821add835cb110e8";
const SUBMODULE_REWIND_COMMIT: &'static str = "6995e3989758531fdbd988ece628e7307ab59266";
const SUBMODULE_BRANCH1_COMMIT: &'static str = "6e8ae702722e39626ac686929234eea0dc3d48de";
const SUBMODULE_BRANCH2_COMMIT: &'static str = "0465e50432fcd101e88dc61ecd81ef89b611a991";
const SUBMODULE_UNMERGED_COMMIT: &'static str = "d8df6fab975c401632aecc366d34f9a91da82500";
const SUBMODULE_NOT_PRESENT_COMMIT: &'static str = "5c3eee710420e98fde8818a688bfbf2bb1a96ff8";
// This commit is the conflict resolution between the branch1 and branch2 updates.
static SUBMODULE_RESOLUTION: &'static str = "892c174777e7b9a80383f8cd60f91af72ace2df2";
const SUBMODULE_RESOLUTION: &'static str = "892c174777e7b9a80383f8cd60f91af72ace2df2";
#[test]
fn test_gitdir() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment