github.com/goproxy0/go@v0.0.0-20171111080102-49cc0c489d2c/src/time/zoneinfo_android_test.go (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package time_test 6 7 import ( 8 "testing" 9 . "time" 10 ) 11 12 func TestAndroidTzdata(t *testing.T) { 13 ForceAndroidTzdataForTest(true) 14 defer ForceAndroidTzdataForTest(false) 15 if _, err := LoadLocation("America/Los_Angeles"); err != nil { 16 t.Error(err) 17 } 18 }