Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLimitWriter (0.1 sec)

  1. pkg/kubelet/util/ioutils/ioutils_test.go

    limitations under the License.
    */
    
    package ioutils
    
    import (
    	"bytes"
    	"fmt"
    	"math/rand"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    )
    
    func TestLimitWriter(t *testing.T) {
    	r := rand.New(rand.NewSource(1234)) // Fixed source to prevent flakes.
    
    	tests := []struct {
    		inputSize, limit, writeSize int64
    	}{
    		// Single write tests
    		{100, 101, 100},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 11 13:52:28 UTC 2019
    - 2K bytes
    - Viewed (0)
Back to top