{.used.} # Nim-Libp2p # Copyright (c) 2023 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) # at your option. # This file may not be copied, modified, or distributed except according to # those terms. import ./helpers import ../libp2p/multiaddress import ../libp2p/wire suite "Wire": test "initTAddress returns ok and correct result for a Unix domain address": let ma = MultiAddress.init("/unix/tmp/socket").get() let result = initTAddress(ma) var address_un: array[108, uint8] let unixPath = "/tmp/socket" for i in 0..