stdin: Vec::new(), tempdir: TempDir::new().unwrap(), } } pub(crate) fn write(self, path: impl AsRef<Path>, contents: impl AsRef<[u8]>) -> Self { fs::write(self.tempdir.path().join(path), contents).unwrap(); self } pub(crate) fn rpc_server(self, rpc_server: &test_bitcoincore_rpc::Handle) -> Self { Self { rpc_server_url: Some(rpc_server.url()), ..self } } pub(crate) fn stdin(self, stdin: Vec<u8>) -> Self { Self { stdin, ..self } } pub(crate) fn stdout_regex(self, expected_stdout: impl AsRef<str>) -> Self { Self { expected_stdout: Expected::regex(expected_stdout.as_ref()), ..self } } pub(crate) fn expected_stderr(self, expected_stderr: impl AsRef<str>) -> Self { Self { expected_stderr: Expected::String(expected_stderr.as_ref().to_owned()), ..self } } pub(crate) fn stderr_regex(self, expected_stderr: impl AsRef<str>) -> Self { Self { expected_stderr: Expected::regex(expected_stderr.as_ref()),
Inscription number 44,992,617
Genesis block 819,081
File type text
File size 1.01 KB
Creation date Nov 30,2023 6:1 am