diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-25 15:49:13 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-25 15:49:13 -0600 |
| commit | 44c9f96488b97ad84f9c8f34d1a43c3c7287a263 (patch) | |
| tree | f951c235740ce9b6353e7fd2c7f01a232ec74624 /tests/common | |
| parent | 790b5d5e51c64e56bba876978ebb9970b0ce0f03 (diff) | |
feat: inline create_test_request function
Diffstat (limited to 'tests/common')
| -rw-r--r-- | tests/common/factory_bot.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/common/factory_bot.rs b/tests/common/factory_bot.rs index f25633f4..2389c858 100644 --- a/tests/common/factory_bot.rs +++ b/tests/common/factory_bot.rs @@ -26,14 +26,6 @@ pub fn create_request(f: impl std::ops::FnOnce(&mut HttpRequest)) -> CheckReques }) } -pub fn create_test_request_with_headers( - headers: HashMap<String, String>, -) -> tonic::Request<CheckRequest> { - tonic::Request::new(create_request(|item: &mut HttpRequest| { - item.headers = headers; - })) -} - pub fn build_headers(headers: Vec<(String, String)>) -> HashMap<String, String> { return build_with(|item: &mut HashMap<String, String>| { for (key, value) in headers { |
