mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			362 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			362 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
 | 
						|
 | 
						|
package fnv_test
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/TeaOSLab/EdgeNode/internal/utils/fnv"
 | 
						|
	"github.com/iwind/TeaGo/types"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestHash(t *testing.T) {
 | 
						|
	for _, key := range []string{"costarring", "liquid", "hello"} {
 | 
						|
		var h = fnv.Hash(key)
 | 
						|
		t.Log(key + " => " + types.String(h))
 | 
						|
	}
 | 
						|
}
 |