From 21e438d257861eadc1dafcee914e4a51cffd3852 Mon Sep 17 00:00:00 2001 From: gVisor bot Date: Wed, 8 Apr 2020 23:28:52 -0700 Subject: Dereference pointers in Layer's Stringer impl Dereference any fields which are pointers before string formatting so that the value pointed to ends up in the string representation. Tested: Added TestLayerStringFormat to //third_party/gvisor/test/packetimpact/testbench:testbench_test PiperOrigin-RevId: 305627821 --- test/packetimpact/testbench/BUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'test/packetimpact/testbench/BUILD') diff --git a/test/packetimpact/testbench/BUILD b/test/packetimpact/testbench/BUILD index 199823419..838a10ffe 100644 --- a/test/packetimpact/testbench/BUILD +++ b/test/packetimpact/testbench/BUILD @@ -36,4 +36,5 @@ go_test( size = "small", srcs = ["layers_test.go"], library = ":testbench", + deps = ["//pkg/tcpip"], ) -- cgit v1.2.3