mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 16:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			386 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			386 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
 | 
						|
 | 
						|
package caches_test
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeNode/internal/caches"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestOpenFilePool_Get(t *testing.T) {
 | 
						|
	var pool = caches.NewOpenFilePool("a")
 | 
						|
	t.Log(pool.Filename())
 | 
						|
	t.Log(pool.Get())
 | 
						|
	t.Log(pool.Put(caches.NewOpenFile(nil, nil, nil, 0)))
 | 
						|
	t.Log(pool.Get())
 | 
						|
	t.Log(pool.Get())
 | 
						|
}
 |