github.com/containerd/containerd v1.6.21-0.20230406162538-c0efc63d3907
AArch64 (ARM64) architecture stringBasename is uppercase README.md
SHA-2563ba504b1ce6237df80bc07a786b89679db9d17a2ac444f723282f06f8013d77a
Evidence
1:3… me: Bug report
2description: Create a bug report to help improve containerd
3labels: kind/bug
4body:
⋯4 lines
107:24… Marshal() (dAtA []byte, err error) {
108 size := m.Size()
109 dAtA = make([]byte, size)
110 n, err := m.MarshalToSizedBuffer(dAtA[:size])
111 if err != nil {
⋯6 lines
170}
171func sozContent(x uint64) (n int) {
172 return sovContent(uint64((x << 1) ^ uint64((int64(x) >> 63))))
173}
174func (this *ContentDelete) String() string {
⋯4 lines
183:6… rn s
184}
185func valueToStringContent(v interface{}) string {
186 rv := reflect.ValueOf(v)
187 if rv.IsNil() {
188 return "nil"
189 }
190 pv := reflect.Indirect(rv).Interface()
191 return fmt.Sprintf("*%v", pv)
192}
⋯4 lines
197 preIndex := iNdEx
198 var wire uint64
199 for shift := uint(0); ; shift += 7 {
200 if shift >= 64 {
201 return ErrIntOverflowContent
⋯5 lines
15:48… , either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18*/
19
20package cio
21
22import (
23 "bytes"
24 "context"
25 "io"
26 "net/url"
27 "os"
28 "path/filepath"
29 "runtime"
30 "strings"
31 "syscall"
32 "testing"
33
34 "github.com/containerd/fifo"
35 "github.com/google/go-cmp/cmp/cmpopts"
36 "gotest.tools/v3/assert"
37 is "gotest.tools/v3/assert/cmp"
38)
39
40func assertHasPrefix(t *testing.T, s, prefix string) {
41 t.Helper()
42 if !strings.HasPrefix(s, prefix) {
43 t.Fatalf("expected %s to start with %s", s, prefix)
44 }
45}
46
47func TestNewFIFOSetInDir(t *testing.T) {
48 if runtime.GOOS == "windows" {
49 t.Skip("NewFIFOSetInDir has different behaviour on windows")
50 }
51
52 root := t.TempDir()
53
54 fifos, err := NewFIFOSetInDir(root, "theid", true)
55 assert. …
Showing the top 5 files — 3 more files (46 regions) not shown.