diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2019-01-18 16:45:30 +0100 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2019-01-24 02:11:08 +0100 |
commit | ce354a6afbf1813c9a5565a00f6937c1b6fd1e42 (patch) | |
tree | 5f8fef7e2879a8aec6e8c22302c4fce5e46e7083 /vendor/golang.org/x/text/unicode/cldr/data_test.go | |
parent | 56dd0f4dfdc33594502ec02421425c3432570be3 (diff) |
[pkg] remove vendoring of golang/x/*
I think there's no need of vendoring this.
The debian package builds fine without them - at least with the text-dev
package in testing.
Diffstat (limited to 'vendor/golang.org/x/text/unicode/cldr/data_test.go')
-rw-r--r-- | vendor/golang.org/x/text/unicode/cldr/data_test.go | 186 |
1 files changed, 0 insertions, 186 deletions
diff --git a/vendor/golang.org/x/text/unicode/cldr/data_test.go b/vendor/golang.org/x/text/unicode/cldr/data_test.go deleted file mode 100644 index 1662189..0000000 --- a/vendor/golang.org/x/text/unicode/cldr/data_test.go +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2013 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package cldr - -// This file contains test data. - -import ( - "io" - "strings" -) - -type testLoader struct { -} - -func (t testLoader) Len() int { - return len(testFiles) -} - -func (t testLoader) Path(i int) string { - return testPaths[i] -} - -func (t testLoader) Reader(i int) (io.ReadCloser, error) { - return &reader{*strings.NewReader(testFiles[i])}, nil -} - -// reader adds a dummy Close method to strings.Reader so that it -// satisfies the io.ReadCloser interface. -type reader struct { - strings.Reader -} - -func (r reader) Close() error { - return nil -} - -var ( - testFiles = []string{de_xml, gsw_xml, root_xml} - testPaths = []string{ - "common/main/de.xml", - "common/main/gsw.xml", - "common/main/root.xml", - } -) - -var root_xml = `<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"> -<ldml> - <identity> - <language type="root"/> - <generation date="now"/> - </identity> - <characters> - <exemplarCharacters>[]</exemplarCharacters> - <exemplarCharacters type="auxiliary">[]</exemplarCharacters> - <exemplarCharacters type="punctuation">[\- ‐ – — … ' ‘ ‚ " “ „ \& #]</exemplarCharacters> - <ellipsis type="final">{0}…</ellipsis> - <ellipsis type="initial">…{0}</ellipsis> - <moreInformation>?</moreInformation> - </characters> - <dates> - <calendars> - <default choice="gregorian"/> - <calendar type="buddhist"> - <months> - <alias source="locale" path="../../calendar[@type='gregorian']/months"/> - </months> - </calendar> - <calendar type="chinese"> - <months> - <alias source="locale" path="../../calendar[@type='gregorian']/months"/> - </months> - </calendar> - <calendar type="gregorian"> - <months> - <default choice="format"/> - <monthContext type="format"> - <default choice="wide"/> - <monthWidth type="narrow"> - <alias source="locale" path="../../monthContext[@type='stand-alone']/monthWidth[@type='narrow']"/> - </monthWidth> - <monthWidth type="wide"> - <month type="1">11</month> - <month type="2">22</month> - <month type="3">33</month> - <month type="4">44</month> - </monthWidth> - </monthContext> - <monthContext type="stand-alone"> - <monthWidth type="narrow"> - <month type="1">1</month> - <month type="2">2</month> - <month type="3">3</month> - <month type="4">4</month> - </monthWidth> - <monthWidth type="wide"> - <alias source="locale" path="../../monthContext[@type='format']/monthWidth[@type='wide']"/> - </monthWidth> - </monthContext> - </months> - </calendar> - </calendars> - </dates> -</ldml> -` - -var de_xml = `<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"> -<ldml> - <identity> - <language type="de"/> - </identity> - <characters> - <exemplarCharacters>[a ä b c d e ö p q r s ß t u ü v w x y z]</exemplarCharacters> - <exemplarCharacters type="auxiliary">[á à ă]</exemplarCharacters> - <exemplarCharacters type="index">[A B C D E F G H Z]</exemplarCharacters> - <ellipsis type="final">{0} …</ellipsis> - <ellipsis type="initial">… {0}</ellipsis> - <moreInformation>?</moreInformation> - <stopwords> - <stopwordList type="collation" draft="provisional">der die das</stopwordList> - </stopwords> - </characters> - <dates> - <calendars> - <calendar type="buddhist"> - <months> - <monthContext type="format"> - <monthWidth type="narrow"> - <month type="3">BBB</month> - </monthWidth> - <monthWidth type="wide"> - <month type="3">bbb</month> - </monthWidth> - </monthContext> - </months> - </calendar> - <calendar type="gregorian"> - <months> - <monthContext type="format"> - <monthWidth type="narrow"> - <month type="3">M</month> - <month type="4">A</month> - </monthWidth> - <monthWidth type="wide"> - <month type="3">Maerz</month> - <month type="4">April</month> - <month type="5">Mai</month> - </monthWidth> - </monthContext> - <monthContext type="stand-alone"> - <monthWidth type="narrow"> - <month type="3">m</month> - <month type="5">m</month> - </monthWidth> - <monthWidth type="wide"> - <month type="4">april</month> - <month type="5">mai</month> - </monthWidth> - </monthContext> - </months> - </calendar> - </calendars> - </dates> - <posix> - <messages> - <yesstr>yes:y</yesstr> - <nostr>no:n</nostr> - </messages> - </posix> -</ldml> -` - -var gsw_xml = `<?xml version="1.0" encoding="UTF-8" ?> -<!DOCTYPE ldml SYSTEM "../../common/dtd/ldml.dtd"> -<ldml> - <identity> - <language type="gsw"/> - </identity> - <posix> - <alias source="de" path="//ldml/posix"/> - </posix> -</ldml> -` |