summaryrefslogtreecommitdiffstats
path: root/src/ipfs_client.rs
blob: a4b3710d964f78c6e35413d2660a4f32fc7182fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub type IpfsClient = ipfs_api_backend_hyper::IpfsClient;

#[cfg(test)]
mod tests {
    use super::IpfsClient;

    #[test]
    fn test_connect_str() {
        let _ = IpfsClient::from_str("http://localhost:5001").unwrap();
    }

    #[test]
    fn test_connect_host_and_port() {
        let _ = IpfsClient::from_host_and_port("localhost", 5001).unwrap();
    }
}