Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MultiWriter (0.08 sec)

  1. internal/ringbuffer/ring_buffer_test.go

    	var wroteBuf bytes.Buffer
    	readHash := crc32.NewIEEE()
    	wroteHash := crc32.NewIEEE()
    	read := io.Writer(readHash)
    	wrote := io.Writer(wroteHash)
    	if debug {
    		read = io.MultiWriter(read, &readBuf)
    		wrote = io.MultiWriter(wrote, &wroteBuf)
    	}
    	debugln := func(args ...interface{}) {
    		if debug {
    			fmt.Println(args...)
    		}
    	}
    	// Inject random reader/writer sleeps.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
Back to top