github.com/u-root/u-root@v7.0.1-0.20200915234505-ad7babab0a8e+incompatible/integration/generic-tests/wc.go (about)

     1  // Copyright 2018 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package integration
     6  
     7  import "bytes"
     8  
     9  // wc embeds a bytes.Buffer, and we add a Close function
    10  // to make qemu package happy.
    11  // It can be used for SerialOutput.
    12  type wc struct {
    13  	bytes.Buffer
    14  }
    15  
    16  // Close implements close on the wc.
    17  // There's not much to do, if we cared, we could
    18  // just put a chan in here that someone could
    19  // wait on to confirm it was really closed.
    20  func (w *wc) Close() error {
    21  	return nil
    22  }