Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for PASS (0.21 sec)

  1. cmd/xl-storage_unix_test.go

    	if err = disk.MakeVol(context.Background(), testCase.volName); err != nil {
    		t.Fatalf("Creating a volume failed with %s expected to pass.", err)
    	}
    
    	// Stat to get permissions bits.
    	st, err := os.Stat(path.Join(tmpPath, testCase.volName))
    	if err != nil {
    		t.Fatalf("Stat failed with %s expected to pass.", err)
    	}
    
    	// Get umask of the bits stored.
    	currentUmask := 0o777 - uint32(st.Mode().Perm())
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  2. cmd/xl-storage_windows_test.go

    	}
    
    	for i, test := range testCases {
    		t.Run(fmt.Sprint(i), func(t *testing.T) {
    			err = fs.AppendFile(context.Background(), "voldir", test.objName, []byte("hello"))
    			if err != nil && test.pass {
    				t.Error(err)
    			} else if err == nil && !test.pass {
    				t.Error(err)
    			}
    			fs.Delete(context.Background(), "voldir", test.objName, DeleteOptions{
    				Recursive: false,
    				Immediate: false,
    			})
    		})
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Nov 29 06:35:16 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  3. cmd/ftp-server.go

    		}
    	}
    }
    
    // PrintCommand implement Logger
    func (log *minioLogger) PrintCommand(sessionID string, command string, params string) {
    	if serverDebugLog {
    		if command == "PASS" {
    			fmt.Printf("%s > PASS ****\n", sessionID)
    		} else {
    			fmt.Printf("%s > %s %s\n", sessionID, command, params)
    		}
    	}
    }
    
    // PrintResponse implement Logger
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 4.8K bytes
    - Viewed (2)
  4. internal/disk/directio_darwin.go

    }
    
    // DisableDirectIO - disables directio mode.
    func DisableDirectIO(f *os.File) error {
    	fd := f.Fd()
    	_, err := unix.FcntlInt(fd, unix.F_NOCACHE, 0)
    	return err
    }
    
    // AlignedBlock - pass through to directio implementation.
    func AlignedBlock(blockSize int) []byte {
    	return directio.AlignedBlock(blockSize)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jun 17 14:31:36 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  5. cmd/metacache-entries_test.go

    /Isaac.Newton-Opticks.txt.bz2", "src/compress/bzip2/testdata/e.txt.bz2", "src/compress/bzip2/testdata/fail-issue5747.bz2", "src/compress/bzip2/testdata/pass-random1.bin", "src/compress/bzip2/testdata/pass-random1.bz2", "src/compress/bzip2/testdata/pass-random2.bin", "src/compress/bzip2/testdata/pass-random2.bz2", "src/compress/bzip2/testdata/pass-sawtooth.bz2", "src/compress/bzip2/testdata/random.data.bz2", "src/compress/flate/deflate.go", "src/compress/flate/deflate_test.go", "src/compress/flate/deflatefast.go",...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 31.6K bytes
    - Viewed (0)
  6. istioctl/pkg/multicluster/options.go

    	Namespace  string
    }
    
    // Inherit the common kubernetes flags defined in the root package. This is a bit of a hack,
    // but it allows us to directly get the final values for each of these flags without needing
    // to pass pointers-to-flags through all of the (sub)commands.
    func (o *KubeOptions) prepare(ctx cli.Context) {
    	o.Namespace = ctx.Namespace()
    	if o.Namespace == "" {
    		o.Namespace = ctx.IstioNamespace()
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Aug 01 23:59:49 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  7. internal/crypto/key_test.go

    func recoverTest(i int, shouldPass bool, t *testing.T) {
    	if err := recover(); err == nil && !shouldPass {
    		t.Errorf("Test %d should fail but passed successfully", i)
    	} else if err != nil && shouldPass {
    		t.Errorf("Test %d should pass but failed: %v", i, err)
    	}
    }
    
    var generateKeyTests = []struct {
    	ExtKey     [32]byte
    	Random     io.Reader
    	ShouldPass bool
    }{
    	{ExtKey: [32]byte{}, Random: nil, ShouldPass: true},              // 0
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. tests/serializer_test.go

    	data := SerializerStruct{
    		Name:            []byte("jinzhu"),
    		Roles:           []string{"r1", "r2"},
    		Contracts:       map[string]interface{}{"name": "jinzhu", "age": 10},
    		EncryptedString: EncryptedString("pass"),
    		CreatedTime:     createdAt.Unix(),
    		UpdatedTime:     &updatedAt,
    		JobInfo: Job{
    			Title:    "programmer",
    			Number:   9920,
    			Location: "Kenmawr",
    			IsIntern: false,
    		},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Apr 21 14:09:38 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  9. internal/ioutil/read_file.go

    //
    // passes NOATIME flag for reads on Unix systems to avoid atime updates.
    func ReadFile(name string) ([]byte, error) {
    	// Don't wrap with un-needed buffer.
    	// Don't use os.ReadFile, since it doesn't pass NO_ATIME when present.
    	f, err := OsOpenFile(name, readMode, 0o666)
    	if err != nil {
    		return nil, err
    	}
    	defer f.Close()
    	st, err := f.Stat()
    	if err != nil {
    		return io.ReadAll(f)
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 09 18:17:51 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  10. cmd/object-api-putobject_test.go

    		if actualErr != nil && testCase.expectedError == nil {
    			t.Errorf("Test %d: %s: Expected to pass, but failed with: error %s.", i, instanceType, actualErr.Error())
    			continue
    		}
    		if actualErr == nil && testCase.expectedError != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Viewed (0)
Back to top