diff options
author | Adin Scannell <ascannell@google.com> | 2020-03-11 19:50:59 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-11 19:52:14 -0700 |
commit | 61051f226889f51fb97bd44131899a3c502b4c42 (patch) | |
tree | b8140d55db5e86593bae7ba71574163be06a8e38 /pkg/buffer/BUILD | |
parent | a9c6135ed73c99686a6de1d7160dc874dd0ab5ca (diff) |
Clean-up buffer implementation.
This also adds substantial test cases.
The Read/Write interfaces are dropped as they are not necessary.
PiperOrigin-RevId: 300461547
Diffstat (limited to 'pkg/buffer/BUILD')
-rw-r--r-- | pkg/buffer/BUILD | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg/buffer/BUILD b/pkg/buffer/BUILD index a77a3beea..dcd086298 100644 --- a/pkg/buffer/BUILD +++ b/pkg/buffer/BUILD @@ -10,8 +10,8 @@ go_template_instance( prefix = "buffer", template = "//pkg/ilist:generic_list", types = { - "Element": "*Buffer", - "Linker": "*Buffer", + "Element": "*buffer", + "Linker": "*buffer", }, ) @@ -34,6 +34,10 @@ go_library( go_test( name = "buffer_test", size = "small", - srcs = ["view_test.go"], + srcs = [ + "safemem_test.go", + "view_test.go", + ], library = ":buffer", + deps = ["//pkg/safemem"], ) |