Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Test_newMetacacheStream (0.09 sec)

  1. cmd/metacache-stream_test.go

    		}
    		gotObj, err := r.next()
    		if err != nil {
    			t.Fatal(err)
    		}
    		if gotObj.name != want {
    			t.Errorf("entry %d, want %q, got %q", i, want, gotObj.name)
    		}
    	}
    }
    
    func Test_newMetacacheStream(t *testing.T) {
    	r := loadMetacacheSample(t)
    	var buf bytes.Buffer
    	w := newMetacacheWriter(&buf, 1<<20)
    	defer w.Close()
    	err := r.readFn(func(object metaCacheEntry) bool {
    		err := w.write(object)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
Back to top