MCPcopy Index your code
hub / github.com/endbasic/endbasic / add_mock_delete_file

Method add_mock_delete_file

client/src/testutils.rs:154–162  ·  view source on GitHub ↗
(
        &mut self,
        username: &str,
        filename: &str,
        result: io::Result<()>,
    )

Source from the content-addressed store, hash-verified

152 /// pair and that returns `result`.
153 #[cfg(test)]
154 pub(crate) fn add_mock_delete_file(
155 &mut self,
156 username: &str,
157 filename: &str,
158 result: io::Result<()>,
159 ) {
160 let exp_request = (username.to_owned(), filename.to_owned());
161 self.mock_delete_file.push_back((exp_request, result));
162 }
163
164 /// Ensures that all requests and responses have been consumed.
165 pub(crate) fn verify_all_used(&mut self) {

Callers 1

test_clouddrive_deleteFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected