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.31
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 /
cmd /
go /
internal /
get /
[ HOME SHELL ]
Name
Size
Permission
Action
discovery.go
2.6
KB
-rw-r--r--
get.go
18.29
KB
-rw-r--r--
path.go
5.35
KB
-rw-r--r--
pkg_test.go
4
KB
-rw-r--r--
tag_test.go
2.17
KB
-rw-r--r--
vcs.go
34.08
KB
-rw-r--r--
vcs_test.go
12.52
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pkg_test.go
// Copyright 2014 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 get import ( "cmd/go/internal/str" "reflect" "strings" "testing" ) var foldDupTests = []struct { list []string f1, f2 string }{ {str.StringList("math/rand", "math/big"), "", ""}, {str.StringList("math", "strings"), "", ""}, {str.StringList("strings"), "", ""}, {str.StringList("strings", "strings"), "strings", "strings"}, {str.StringList("Rand", "rand", "math", "math/rand", "math/Rand"), "Rand", "rand"}, } func TestFoldDup(t *testing.T) { for _, tt := range foldDupTests { f1, f2 := str.FoldDup(tt.list) if f1 != tt.f1 || f2 != tt.f2 { t.Errorf("foldDup(%q) = %q, %q, want %q, %q", tt.list, f1, f2, tt.f1, tt.f2) } } } var parseMetaGoImportsTests = []struct { in string mod ModuleMode out []metaImport }{ { `<meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar">`, IgnoreMod, []metaImport{{"foo/bar", "git", "https://github.com/rsc/foo/bar"}}, }, { `<meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar"> <meta name="go-import" content="baz/quux git http://github.com/rsc/baz/quux">`, IgnoreMod, []metaImport{ {"foo/bar", "git", "https://github.com/rsc/foo/bar"}, {"baz/quux", "git", "http://github.com/rsc/baz/quux"}, }, }, { `<meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar"> <meta name="go-import" content="foo/bar mod http://github.com/rsc/baz/quux">`, IgnoreMod, []metaImport{ {"foo/bar", "git", "https://github.com/rsc/foo/bar"}, }, }, { `<meta name="go-import" content="foo/bar mod http://github.com/rsc/baz/quux"> <meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar">`, IgnoreMod, []metaImport{ {"foo/bar", "git", "https://github.com/rsc/foo/bar"}, }, }, { `<meta name="go-import" content="foo/bar mod http://github.com/rsc/baz/quux"> <meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar">`, PreferMod, []metaImport{ {"foo/bar", "mod", "http://github.com/rsc/baz/quux"}, }, }, { `<head> <meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar"> </head>`, IgnoreMod, []metaImport{{"foo/bar", "git", "https://github.com/rsc/foo/bar"}}, }, { `<meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar"> <body>`, IgnoreMod, []metaImport{{"foo/bar", "git", "https://github.com/rsc/foo/bar"}}, }, { `<!doctype html><meta name="go-import" content="foo/bar git https://github.com/rsc/foo/bar">`, IgnoreMod, []metaImport{{"foo/bar", "git", "https://github.com/rsc/foo/bar"}}, }, { // XML doesn't like <div style=position:relative>. `<!doctype html><title>Page Not Found</title><meta name=go-import content="chitin.io/chitin git https://github.com/chitin-io/chitin"><div style=position:relative>DRAFT</div>`, IgnoreMod, []metaImport{{"chitin.io/chitin", "git", "https://github.com/chitin-io/chitin"}}, }, { `<meta name="go-import" content="myitcv.io git https://github.com/myitcv/x"> <meta name="go-import" content="myitcv.io/blah2 mod https://raw.githubusercontent.com/myitcv/pubx/master"> `, IgnoreMod, []metaImport{{"myitcv.io", "git", "https://github.com/myitcv/x"}}, }, { `<meta name="go-import" content="myitcv.io git https://github.com/myitcv/x"> <meta name="go-import" content="myitcv.io/blah2 mod https://raw.githubusercontent.com/myitcv/pubx/master"> `, PreferMod, []metaImport{ {"myitcv.io/blah2", "mod", "https://raw.githubusercontent.com/myitcv/pubx/master"}, {"myitcv.io", "git", "https://github.com/myitcv/x"}, }, }, } func TestParseMetaGoImports(t *testing.T) { for i, tt := range parseMetaGoImportsTests { out, err := parseMetaGoImports(strings.NewReader(tt.in), tt.mod) if err != nil { t.Errorf("test#%d: %v", i, err) continue } if !reflect.DeepEqual(out, tt.out) { t.Errorf("test#%d:\n\thave %q\n\twant %q", i, out, tt.out) } } }
Close