This file is indexed.

/usr/share/gocode/src/github.com/revel/revel/cache/memcached_test.go is in golang-github-revel-revel-dev 0.12.0+dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package cache

import (
	"net"
	"testing"
	"time"
)

// These tests require memcached running on localhost:11211 (the default)
const testServer = "localhost:11211"

var newMemcachedCache = func(t *testing.T, defaultExpiration time.Duration) Cache {
	c, err := net.Dial("tcp", testServer)
	if err == nil {
		c.Write([]byte("flush_all\r\n"))
		c.Close()
		return NewMemcachedCache([]string{testServer}, defaultExpiration)
	}
	t.Errorf("couldn't connect to memcached on %s", testServer)
	t.FailNow()
	panic("")
}

func TestMemcachedCache_TypicalGetSet(t *testing.T) {
	typicalGetSet(t, newMemcachedCache)
}

func TestMemcachedCache_IncrDecr(t *testing.T) {
	incrDecr(t, newMemcachedCache)
}

func TestMemcachedCache_Expiration(t *testing.T) {
	expiration(t, newMemcachedCache)
}

func TestMemcachedCache_EmptyCache(t *testing.T) {
	emptyCache(t, newMemcachedCache)
}

func TestMemcachedCache_Replace(t *testing.T) {
	testReplace(t, newMemcachedCache)
}

func TestMemcachedCache_Add(t *testing.T) {
	testAdd(t, newMemcachedCache)
}

func TestMemcachedCache_GetMulti(t *testing.T) {
	testGetMulti(t, newMemcachedCache)
}