mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: vfmt everything
This commit is contained in:
@@ -14,7 +14,7 @@ $if windows {
|
||||
}
|
||||
|
||||
fn test_diagnostics() {
|
||||
dump(net.aoffset)
|
||||
dump(aoffset)
|
||||
eprintln('--------')
|
||||
in6 := C.sockaddr_in6{}
|
||||
our_ip6 := Ip6{}
|
||||
@@ -72,17 +72,17 @@ fn test_sizes_unix_sun_path() {
|
||||
}
|
||||
|
||||
fn test_offsets_ipv6() {
|
||||
assert __offsetof(C.sockaddr_in6, sin6_addr) == __offsetof(Ip6, addr) + net.aoffset
|
||||
assert __offsetof(C.sockaddr_in6, sin6_port) == __offsetof(Ip6, port) + net.aoffset
|
||||
assert __offsetof(C.sockaddr_in6, sin6_addr) == __offsetof(Ip6, addr) + aoffset
|
||||
assert __offsetof(C.sockaddr_in6, sin6_port) == __offsetof(Ip6, port) + aoffset
|
||||
}
|
||||
|
||||
fn test_offsets_ipv4() {
|
||||
assert __offsetof(C.sockaddr_in, sin_addr) == __offsetof(Ip, addr) + net.aoffset
|
||||
assert __offsetof(C.sockaddr_in, sin_port) == __offsetof(Ip, port) + net.aoffset
|
||||
assert __offsetof(C.sockaddr_in, sin_addr) == __offsetof(Ip, addr) + aoffset
|
||||
assert __offsetof(C.sockaddr_in, sin_port) == __offsetof(Ip, port) + aoffset
|
||||
}
|
||||
|
||||
fn test_offsets_unix() {
|
||||
assert __offsetof(C.sockaddr_un, sun_path) == __offsetof(Unix, path) + net.aoffset
|
||||
assert __offsetof(C.sockaddr_un, sun_path) == __offsetof(Unix, path) + aoffset
|
||||
}
|
||||
|
||||
fn test_sizes_ipv6() {
|
||||
|
||||
Reference in New Issue
Block a user