mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			406 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			406 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								package nodeconfigs
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo/logs"
							 | 
						||
| 
								 | 
							
									"testing"
							 | 
						||
| 
								 | 
							
									"time"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestFindAllTimeZoneLocations(t *testing.T) {
							 | 
						||
| 
								 | 
							
									var before = time.Now()
							 | 
						||
| 
								 | 
							
									var locations = FindAllTimeZoneLocations()
							 | 
						||
| 
								 | 
							
									t.Log(len(locations), "locations")
							 | 
						||
| 
								 | 
							
									t.Logf("%.2f %s", time.Since(before).Seconds()*1000, "ms")
							 | 
						||
| 
								 | 
							
									logs.PrintAsJSON(locations, t)
							 | 
						||
| 
								 | 
							
								}
							 |