Debian Codegraph @

entry_test.go

raw symbols SCIP
1 package gocachescip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/
2
3 import (
4 "fmtscip-go gomod github.com/golang/go/src go1.24.4 fmt/"
5 "testingscip-go gomod github.com/golang/go/src go1.24.4 testing/"
6 )
7
8 func TestEntry_SizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/TestEntry_SizeInBytes().(t *testingscip-go gomod github.com/golang/go/src go1.24.4 testing/.Tscip-go gomod github.com/golang/go/src go1.24.4 testing/T#) {
9 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "key", 0, 75)
10 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", 0, 73)
11 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", "v", 66)
12 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", true, 66)
13 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", int8(1), 66)
14 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", uint8(1), 66)
15 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", true, 66)
16 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", int16(1), 67)
17 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", uint16(1), 67)
18 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", int32(1), 69)
19 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", uint32(1), 69)
20 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", float32(1), 69)
21 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", complex64(1), 69)
22 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", int64(1), 73)
23 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", uint64(1), 73)
24 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", 1, 73)
25 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", uint(1), 73)
26 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", float64(1), 73)
27 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", complex128(1), 73)
28 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []string{}, 65)
29 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []string{"what"}, 85)
30 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []string{"what", "the"}, 104)
31 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int8{}, 65)
32 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int8{1}, 66)
33 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int8{1, 2}, 67)
34 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint8{1}, 66)
35 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint8{1, 2}, 67)
36 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []bool{true}, 66)
37 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []bool{true, false}, 67)
38 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int16{1}, 67)
39 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int16{1, 2}, 69)
40 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint16{1}, 67)
41 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int32{1}, 69)
42 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int32{1, 2}, 73)
43 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint32{1}, 69)
44 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint32{1, 2}, 73)
45 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []float32{1}, 69)
46 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []float32{1, 2}, 73)
47 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []complex64{1}, 69)
48 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []complex64{1, 2}, 73)
49 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int64{1}, 73)
50 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int64{1, 2}, 81)
51 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint64{1}, 73)
52 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint64{1, 2}, 81)
53 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int{1}, 73)
54 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []int{1, 2}, 81)
55 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint{1}, 73)
56 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []uint{1, 2}, 81)
57 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []float64{1}, 73)
58 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []float64{1, 2}, 81)
59 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []complex128{1}, 73)
60 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", []complex128{1, 2}, 81)
61 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", struct{}{}, 67)
62 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", struct{ A string }{A: "hello"}, 72)
63 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", struct{ A, B string }{A: "hello", B: "world"}, 78)
64 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", nil, 70)
65 testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t, "k", make([]any, 5), 170)
66 }
67
68 func testSizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/testSizeInBytes().(t *testingscip-go gomod github.com/golang/go/src go1.24.4 testing/.Tscip-go gomod github.com/golang/go/src go1.24.4 testing/T#, key string, value any, expectedSize int) {
69 t.Runscip-go gomod github.com/golang/go/src go1.24.4 testing/T#Run().(fmtscip-go gomod github.com/golang/go/src go1.24.4 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.24.4 fmt/Sprintf().("%T_%d", value, expectedSize), func(t *testingscip-go gomod github.com/golang/go/src go1.24.4 testing/.Tscip-go gomod github.com/golang/go/src go1.24.4 testing/T#) {
70 if size := (&Entryscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/Entry#{Keyscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/Entry#Key.: key, Valuescip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/Entry#Value.: value}).SizeInBytesscip-go gomod github.com/TwiN/gocache/v2 . `github.com/TwiN/gocache/v2`/Entry#SizeInBytes().(); size != expectedSize {
71 t.Errorfscip-go gomod github.com/golang/go/src go1.24.4 testing/common#Errorf().("expected size of entry with key '%v' and value '%v' (%T) to be %d, got %d", key, value, value, expectedSize, size)
72 }
73 })
74 }