Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.1
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
encoding /
json /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
bench_test.go
8.59
KB
-rw-r--r--
decode.go
34.97
KB
-rw-r--r--
decode_test.go
59.67
KB
-rw-r--r--
encode.go
37.32
KB
-rw-r--r--
encode_test.go
27.14
KB
-rw-r--r--
example_marshaling_test.go
1.23
KB
-rw-r--r--
example_test.go
6.07
KB
-rw-r--r--
example_text_marshaling_test.g...
1.23
KB
-rw-r--r--
fold.go
3.39
KB
-rw-r--r--
fold_test.go
2.89
KB
-rw-r--r--
fuzz.go
780
B
-rw-r--r--
indent.go
3.4
KB
-rw-r--r--
number_test.go
2.2
KB
-rw-r--r--
scanner.go
15.66
KB
-rw-r--r--
scanner_test.go
6.16
KB
-rw-r--r--
stream.go
12.92
KB
-rw-r--r--
stream_test.go
11.2
KB
-rw-r--r--
tables.go
4.16
KB
-rw-r--r--
tagkey_test.go
2.67
KB
-rw-r--r--
tags.go
1.05
KB
-rw-r--r--
tags_test.go
565
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tagkey_test.go
// Copyright 2011 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 json import ( "testing" ) type basicLatin2xTag struct { V string `json:"$%-/"` } type basicLatin3xTag struct { V string `json:"0123456789"` } type basicLatin4xTag struct { V string `json:"ABCDEFGHIJKLMO"` } type basicLatin5xTag struct { V string `json:"PQRSTUVWXYZ_"` } type basicLatin6xTag struct { V string `json:"abcdefghijklmno"` } type basicLatin7xTag struct { V string `json:"pqrstuvwxyz"` } type miscPlaneTag struct { V string `json:"色は匂へど"` } type percentSlashTag struct { V string `json:"text/html%"` // https://golang.org/issue/2718 } type punctuationTag struct { V string `json:"!#$%&()*+-./:<=>?@[]^_{|}~"` // https://golang.org/issue/3546 } type dashTag struct { V string `json:"-,"` } type emptyTag struct { W string } type misnamedTag struct { X string `jsom:"Misnamed"` } type badFormatTag struct { Y string `:"BadFormat"` } type badCodeTag struct { Z string `json:" !\"#&'()*+,."` } type spaceTag struct { Q string `json:"With space"` } type unicodeTag struct { W string `json:"Ελλάδα"` } var structTagObjectKeyTests = []struct { raw interface{} value string key string }{ {basicLatin2xTag{"2x"}, "2x", "$%-/"}, {basicLatin3xTag{"3x"}, "3x", "0123456789"}, {basicLatin4xTag{"4x"}, "4x", "ABCDEFGHIJKLMO"}, {basicLatin5xTag{"5x"}, "5x", "PQRSTUVWXYZ_"}, {basicLatin6xTag{"6x"}, "6x", "abcdefghijklmno"}, {basicLatin7xTag{"7x"}, "7x", "pqrstuvwxyz"}, {miscPlaneTag{"いろはにほへと"}, "いろはにほへと", "色は匂へど"}, {dashTag{"foo"}, "foo", "-"}, {emptyTag{"Pour Moi"}, "Pour Moi", "W"}, {misnamedTag{"Animal Kingdom"}, "Animal Kingdom", "X"}, {badFormatTag{"Orfevre"}, "Orfevre", "Y"}, {badCodeTag{"Reliable Man"}, "Reliable Man", "Z"}, {percentSlashTag{"brut"}, "brut", "text/html%"}, {punctuationTag{"Union Rags"}, "Union Rags", "!#$%&()*+-./:<=>?@[]^_{|}~"}, {spaceTag{"Perreddu"}, "Perreddu", "With space"}, {unicodeTag{"Loukanikos"}, "Loukanikos", "Ελλάδα"}, } func TestStructTagObjectKey(t *testing.T) { for _, tt := range structTagObjectKeyTests { b, err := Marshal(tt.raw) if err != nil { t.Fatalf("Marshal(%#q) failed: %v", tt.raw, err) } var f interface{} err = Unmarshal(b, &f) if err != nil { t.Fatalf("Unmarshal(%#q) failed: %v", b, err) } for i, v := range f.(map[string]interface{}) { switch i { case tt.key: if s, ok := v.(string); !ok || s != tt.value { t.Fatalf("Unexpected value: %#q, want %v", s, tt.value) } default: t.Fatalf("Unexpected key: %#q, from %#q", i, b) } } } }
Close