diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-04-16 05:37:14 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-04-16 08:37:14 -0400 |
commit | 6e2cb00008cbf09e556b00f87603797fcaa47e09 (patch) | |
tree | 3c0eb55ff4226a3f024aad373140d1fb860a6404 /vendor/gopkg.in/throttled/throttled.v2/store/memstore | |
parent | bf24f51c4e1cc6286885460672f7f449e8c6f5ef (diff) | |
download | chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.gz chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.tar.bz2 chat-6e2cb00008cbf09e556b00f87603797fcaa47e09.zip |
Depenancy upgrades and movign to dep. (#8630)
Diffstat (limited to 'vendor/gopkg.in/throttled/throttled.v2/store/memstore')
-rw-r--r-- | vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore.go | 2 | ||||
-rw-r--r-- | vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore_test.go | 40 |
2 files changed, 1 insertions, 41 deletions
diff --git a/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore.go b/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore.go index 352232958..5d8fee8b5 100644 --- a/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore.go +++ b/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore.go @@ -1,5 +1,5 @@ // Package memstore offers an in-memory store implementation for throttled. -package memstore // import "github.com/throttled/throttled/store/memstore" +package memstore // import "gopkg.in/throttled/throttled.v2/store/memstore" import ( "sync" diff --git a/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore_test.go b/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore_test.go deleted file mode 100644 index 27b1c9b95..000000000 --- a/vendor/gopkg.in/throttled/throttled.v2/store/memstore/memstore_test.go +++ /dev/null @@ -1,40 +0,0 @@ -package memstore_test - -import ( - "testing" - - "github.com/throttled/throttled/store/memstore" - "github.com/throttled/throttled/store/storetest" -) - -func TestMemStoreLRU(t *testing.T) { - st, err := memstore.New(10) - if err != nil { - t.Fatal(err) - } - storetest.TestGCRAStore(t, st) -} - -func TestMemStoreUnlimited(t *testing.T) { - st, err := memstore.New(10) - if err != nil { - t.Fatal(err) - } - storetest.TestGCRAStore(t, st) -} - -func BenchmarkMemStoreLRU(b *testing.B) { - st, err := memstore.New(10) - if err != nil { - b.Fatal(err) - } - storetest.BenchmarkGCRAStore(b, st) -} - -func BenchmarkMemStoreUnlimited(b *testing.B) { - st, err := memstore.New(0) - if err != nil { - b.Fatal(err) - } - storetest.BenchmarkGCRAStore(b, st) -} |