Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for math (0.13 sec)

  1. src/bytes/bytes_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"internal/testenv"
    	"math"
    	"math/rand"
    	"reflect"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    	"unsafe"
    )
    
    func eq(a, b []string) bool {
    	if len(a) != len(b) {
    		return false
    	}
    	for i := 0; i < len(a); i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	"crypto/x509"
    	"crypto/x509/pkix"
    	"encoding/base64"
    	"encoding/hex"
    	"encoding/pem"
    	"encoding/xml"
    	"errors"
    	"flag"
    	"fmt"
    	"io"
    	"math/big"
    	"math/rand"
    	"net"
    	"net/http"
    	"net/http/httptest"
    	"net/url"
    	"os"
    	"path"
    	"path/filepath"
    	"reflect"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    	"unsafe"
    
    	"github.com/fatih/color"
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    				}
    
    				path := baseDirFromPrefix(prefix)
    				filterPrefix := strings.Trim(strings.TrimPrefix(prefix, path), slashSeparator)
    				if path == prefix {
    					filterPrefix = ""
    				}
    
    				lopts := listPathRawOptions{
    					disks:          disks,
    					fallbackDisks:  fallbackDisks,
    					bucket:         bucket,
    					path:           path,
    					filterPrefix:   filterPrefix,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  4. cmd/object-api-multipart_test.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"fmt"
    	"math/rand"
    	"reflect"
    	"runtime"
    	"strings"
    	"testing"
    
    	"github.com/dustin/go-humanize"
    	"github.com/minio/minio/internal/config/storageclass"
    	"github.com/minio/minio/internal/hash"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  5. cmd/iam.go

    	switch {
    	case usersPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigUsersPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, regUser)
    	case stsPrefix:
    		accessKey := path.Dir(strings.TrimPrefix(event.keyPath, iamConfigSTSPrefix))
    		err = sys.store.UserNotificationHandler(ctx, accessKey, stsUser)
    	case svcPrefix:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  6. tests/migrate_test.go

    	if numField != len(columnTypes) {
    		t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes))
    	}
    	namer := schema.NamingStrategy{}
    	for i := 0; i < numField; i++ {
    		expectName := namer.ColumnName("", typ.Field(i).Name)
    		if columnTypes[i].Name() != expectName {
    			t.Fatalf("column order not match struct and ddl, idx %d: %s != %s",
    				i, columnTypes[i].Name(), expectName)
    		}
    	}
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  7. cmd/peer-rest-server.go

    	subrouter.Methods(http.MethodPost).Path(peerRESTVersionPrefix + peerRESTMethodHealth).HandlerFunc(h(server.HealthHandler))
    	subrouter.Methods(http.MethodPost).Path(peerRESTVersionPrefix + peerRESTMethodVerifyBinary).HandlerFunc(h(server.VerifyBinaryHandler)).Queries(restQueries(peerRESTURL, peerRESTSha256Sum, peerRESTReleaseInfo)...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    	return nil
    }
    
    func getValidPath(path string) (string, error) {
    	if path == "" {
    		return path, errInvalidArgument
    	}
    
    	var err error
    	// Disallow relative paths, figure out absolute paths.
    	path, err = filepath.Abs(path)
    	if err != nil {
    		return path, err
    	}
    
    	fi, err := Lstat(path)
    	if err != nil && !osIsNotExist(err) {
    		return path, err
    	}
    	if osIsNotExist(err) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. internal/s3select/select_test.go

    {"id":2,"title":"Second Record","desc":"another text","numbers":[2,3,4]}`,
    		},
    		{
    			name:       "indexed-list-match",
    			query:      `SELECT * from s3object s WHERE (7,8.5,9) IN s.nested[1]`,
    			wantResult: ``,
    		},
    		{
    			name:       "indexed-list-match-equals",
    			query:      `SELECT * from s3object s WHERE (7,8.5,9) = s.nested[1]`,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  10. cmd/object-api-listobjects_test.go

    			Prefixes:    []string{"dir/day_id=2017-10-10/"},
    		},
    		// ListObjectsResult-37 list with prefix match 2 levels deep
    		37: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "foo/201910/1112"},
    				{Name: "foo/201910/1122"},
    			},
    		},
    		// ListObjectsResult-38 list with prefix match 1 level deep
    		38: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    				{Name: "foo/201910/1112"},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
Back to top