You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test.rs
    path of file: ./repos/surrealdb/src/cli
    
    the code of the file until where you have to start completion: use crate::cli::check_upgrade;
use crate::cli::version_client::MapVersionClient;
use crate::err::Error;
use st
    
pub async fn test_version_upgrade() {
	let mut client = MapVersionClient {
		fetch_mock: BTreeMap::new(),
	};
	client
		.fetch_mock
		.insert("latest".to_string(), || -> Result<String, Error> { Ok("1.0.0".to_string()) });
	check_upgrade(&client, "1.0.0")
		.await
		.expect("Expected the versions to be the same and not require an upgrade");
	check_upgrade(&client, "0.9.0")
		.await
		.expect_err("Expected the versions to be different and require an upgrade");
	check_upgrade(&client, "1.1.0")
		.await
		.expect("Expected the versions to be illogical, and not require and upgrade");
}