go/src
Michael Anthony Knyszek d13a9312f5 runtime: add tests for runtime mTreap
This change exports the runtime mTreap in export_test.go and then adds a
series of tests which check that the invariants of the treap are
maintained under different operations. These tests also include tests
for the treap iterator type.

Also, we note that the find() operation on the treap never actually was
best-fit, so the tests just ensure that it returns an appropriately
sized span.

For #30333.

Change-Id: If81f7c746dda6677ebca925cb0a940134701b894
Reviewed-on: https://go-review.googlesource.com/c/go/+/164100
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
2019-04-10 22:00:53 +00:00
..
archive archive/zip: use Modified in FileHeader.FileInfo 2019-04-08 07:55:52 +00:00
bufio
builtin builtin: spec correction for panic() 2019-04-05 00:52:55 +00:00
bytes bytes: optimize ToLower and ToUpper for ASCII-only case 2019-04-09 05:45:34 +00:00
cmd cmd/dist: add BOOT_GO_LDFLAGS - counterpart of BOOT_GO_GCFLAGS 2019-04-10 21:23:18 +00:00
compress cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
container
context context: don't depend on fmt 2019-03-27 02:37:56 +00:00
crypto all: spell "Deprecated: Use etc" consistently 2019-04-10 01:28:25 +00:00
database/sql database/sql: add NullTime 2019-04-05 18:03:45 +00:00
debug debug/dwarf: more graceful handling of unsupported types 2019-03-15 17:33:46 +00:00
encoding encoding/json: use SetBytes in UnmarshalReuse benchmark 2019-04-05 20:54:50 +00:00
errors errors: return false if nil error is passed to As 2019-04-10 15:59:35 +00:00
expvar
flag cmd/go: further reduce init work 2019-03-31 10:49:55 +00:00
fmt fmt: fix spelling mistake in example 2019-03-25 21:03:10 +00:00
go all: spell "Deprecated: Use etc" consistently 2019-04-10 01:28:25 +00:00
hash
html
image image: deprecate ZP and ZR 2019-04-07 03:44:17 +00:00
index/suffixarray
internal syscall: avoid _getdirentries64 on darwin 2019-04-03 21:27:05 +00:00
io
log log: expose Writer() method of the standard logger 2019-03-25 01:18:56 +00:00
math all: change the old assembly style AX:CX to CX, AX 2019-04-09 00:22:03 +00:00
mime mime: add .jpeg for builtin 2019-04-03 18:17:48 +00:00
net net: pass TMPDIR to test client process 2019-04-07 18:55:23 +00:00
os os: fix RemoveAll hangs on large directory 2019-04-10 20:14:25 +00:00
path path/filepath: add examples for Base, Dir and IsAbs 2019-03-25 02:57:06 +00:00
plugin cmd/compile: reorganize init functions 2019-03-18 20:10:55 +00:00
reflect reflect: document that method sets are lexicographically sorted 2019-04-03 19:00:48 +00:00
regexp
runtime runtime: add tests for runtime mTreap 2019-04-10 22:00:53 +00:00
sort sort, internal/reflectlite: flesh out reflectlite enough for use by sort 2019-03-27 04:58:23 +00:00
strconv
strings strings: add TestIndexByte 2019-04-09 14:14:41 +00:00
sync sync: smooth out Pool behavior over GC with a victim cache 2019-04-05 18:49:08 +00:00
syscall syscall: store skip count in file descriptor offset 2019-04-10 20:06:50 +00:00
testdata
testing testing: correct two spelling/grammar issues 2019-03-25 22:26:21 +00:00
text text/template: allow using -}} with many spaces 2019-03-24 09:06:14 +00:00
time time: optimize Sub 2019-03-19 04:10:33 +00:00
unicode
unsafe
vendor
Make.dist
all.bash
all.bat
all.rc
bootstrap.bash bootstrap.bash: remove exec wrappers 2019-04-07 14:32:14 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
go.mod
go.sum
iostest.bash
make.bash
make.bat
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc