mirror of
https://github.com/willnorris/imageproxy.git
synced 2024-12-16 21:56:43 -05:00
7ba3f124eb
- switch to "project authors" style copyright. Instead of an AUTHORS file (https://opensource.google/docs/releasing/authors/), I just list Google as a major copyright holder in the README. - use SPDX style license headers in source files - remove CLA requirement from contributing docs
20 lines
470 B
Go
20 lines
470 B
Go
// Copyright 2013 The imageproxy authors.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package imageproxy
|
|
|
|
import "testing"
|
|
|
|
func TestNopCache(t *testing.T) {
|
|
data, ok := NopCache.Get("foo")
|
|
if data != nil {
|
|
t.Errorf("NopCache.Get returned non-nil data")
|
|
}
|
|
if ok != false {
|
|
t.Errorf("NopCache.Get returned ok = true, should always be false.")
|
|
}
|
|
|
|
// nothing to test on these methods other than to verify they exist
|
|
NopCache.Set("", []byte{})
|
|
NopCache.Delete("")
|
|
}
|