FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pixie/tests/pixie/tests/utils.pxi at master · pixie-lang/pixie · GitHub
pixie-lang
/
pixie
Public
Notifications
You must be signed in to change notification settings
Fork
127
Star
2.4k
Code
Issues
46
Pull requests
9
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pixie
/
tests
/
pixie
/
tests
/
utils.pxi
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 444 Bytes
Breadcrumbs
pixie
/
tests
/
pixie
/
tests
/
utils.pxi
Copy path
File metadata and controls
13 lines (11 loc) · 444 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
(ns pixie.tests.utils)
;; Here we create a new
type
which hashes poorly,
in
fact it
'
s so bad we have a
;;
hash
space of only
1.
;; All members of WorstHasher
return
(
hash
"
worst hasher
"
)
;; when
hash
is
called on them.
;;
;; This makes debugging, testing
and
benchmarking anything based off
;; PersistentHashMap trivial.
;; X can be
any
thing you like.
(defrecord WorstHasher [x])
(extend
-
hash
WorstHasher (fn [
self
] (
hash
"
worst hasher
"
)))
Back
|
FazBrowse Home
|
New Git URL