File: tz_mapping_test.go

package info (click to toggle)
golang-github-thlib-go-timezone-local 0.0~git20210907.ef149e4-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 228 kB
  • sloc: makefile: 4
file content (18 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package tzdata

import (
	"bytes"
	"os"
	"testing"
)

func TestUpdateWindowsTZMapping(t *testing.T) {
	if os.Getenv("AUTOPKGTEST_TMP") == "" {
		t.Skip("skip test as Internet access is disallowed during Debian package build")
	}
	var buf bytes.Buffer
	err := UpdateWindowsTZMapping(&buf)
	if err != nil {
		t.Errorf("error: %v", err)
	}
}