Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkGetMesh (0.38 sec)

  1. pkg/config/mesh/watcher_test.go

    	t.Helper()
    	if err := os.WriteFile(path, []byte(content), 0o666); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func removeSilent(path string) {
    	_ = os.RemoveAll(path)
    }
    
    func BenchmarkGetMesh(b *testing.B) {
    	b.StopTimer()
    
    	path := newTempFile(b)
    	defer removeSilent(path)
    
    	m := mesh.DefaultMeshConfig()
    	writeMessage(b, path, m)
    
    	w := newWatcher(b, path, false)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 3K bytes
    - Viewed (0)
Back to top