Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 1,179 for _func (0.02 sec)

  1. internal/config/identity/openid/rsa-sha3_contrib.go

    var (
    	SigningMethodRS3256 *jwt.SigningMethodRSA
    	SigningMethodRS3384 *jwt.SigningMethodRSA
    	SigningMethodRS3512 *jwt.SigningMethodRSA
    )
    
    func init() {
    	// RS3256
    	SigningMethodRS3256 = &jwt.SigningMethodRSA{Name: "RS3256", Hash: crypto.SHA3_256}
    	jwt.RegisterSigningMethod(SigningMethodRS3256.Alg(), func() jwt.SigningMethod {
    		return SigningMethodRS3256
    	})
    
    	// RS3384
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Nov 05 19:20:08 UTC 2021
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/api/testdata/src/pkg/p4/golden.txt

    pkg p4, func NewPair[$0 interface{ M }, $1 interface{ ~int }]($0, $1) Pair[$0, $1]
    pkg p4, method (Pair[$0, $1]) Second() $1
    pkg p4, method (Pair[$0, $1]) First() $0
    pkg p4, type Pair[$0 interface{ M }, $1 interface{ ~int }] struct
    pkg p4, func Clone[$0 interface{ ~[]$1 }, $1 interface{}]($0) $0
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Jan 26 19:39:32 UTC 2024
    - 329 bytes
    - Viewed (0)
  3. cmd/endpoint-ellipses_test.go

    			}
    		})
    	}
    }
    
    func TestGetDivisibleSize(t *testing.T) {
    	testCases := []struct {
    		totalSizes []uint64
    		result     uint64
    	}{
    		{[]uint64{24, 32, 16}, 8},
    		{[]uint64{32, 8, 4}, 4},
    		{[]uint64{8, 8, 8}, 8},
    		{[]uint64{24}, 24},
    	}
    
    	for _, testCase := range testCases {
    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			gotGCD := getDivisibleSize(testCase.totalSizes)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. internal/config/lambda/event/arn_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 event
    
    import (
    	"testing"
    )
    
    func TestARNString(t *testing.T) {
    	testCases := []struct {
    		arn            ARN
    		expectedResult string
    	}{
    		{ARN{}, ""},
    		{ARN{TargetID{"1", "webhook"}, ""}, "arn:minio:s3-object-lambda::1:webhook"},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. internal/kms/secret-key_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package kms
    
    import (
    	"bytes"
    	"context"
    	"encoding/base64"
    	"testing"
    )
    
    func TestSingleKeyRoundtrip(t *testing.T) {
    	KMS, err := ParseSecretKey("my-key:eEm+JI9/q4JhH8QwKvf3LKo4DEBl6QbfvAl1CAbMIv8=")
    	if err != nil {
    		t.Fatalf("Failed to initialize KMS: %v", err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. callbacks/helper_test.go

    				Values:  [][]interface{}{{true}},
    			},
    		},
    	}
    
    	for _, tc := range testCase {
    		t.Run(tc.name, func(t *testing.T) {
    			actual := ConvertMapToValuesForCreate(&gorm.Statement{}, tc.input)
    			if !reflect.DeepEqual(actual, tc.expect) {
    				t.Errorf("expect %v got %v", tc.expect, actual)
    			}
    		})
    	}
    }
    
    func TestConvertSliceOfMapToValuesForCreate(t *testing.T) {
    	testCase := []struct {
    		name   string
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Tue Mar 05 02:22:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. internal/crypto/metadata_test.go

    	}, // 7
    }
    
    func TestCreateMultipartMetadata(t *testing.T) {
    	metadata := CreateMultipartMetadata(nil)
    	if v, ok := metadata[MetaMultipart]; !ok || v != "" {
    		t.Errorf("Metadata is missing the correct value for '%s': got '%s' - want '%s'", MetaMultipart, v, "")
    	}
    }
    
    func TestSSECParseMetadata(t *testing.T) {
    	for i, test := range ssecParseMetadataTests {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 20:51:54 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	if err != nil {
    		return 0, fmt.Errorf("adb exec-out %s: %v", args, err)
    	}
    	return exitCode, err2
    }
    
    func adb(args ...string) error {
    	if out, err := adbCmd(args...).CombinedOutput(); err != nil {
    		fmt.Fprintf(os.Stderr, "adb %s\n%s", strings.Join(args, " "), out)
    		return err
    	}
    	return nil
    }
    
    func adbCmd(args ...string) *exec.Cmd {
    	if flags := os.Getenv("GOANDROID_ADB_FLAGS"); flags != "" {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  9. src/bufio/scan.go

    )
    
    // NewScanner returns a new [Scanner] to read from r.
    // The split function defaults to [ScanLines].
    func NewScanner(r io.Reader) *Scanner {
    	return &Scanner{
    		r:            r,
    		split:        ScanLines,
    		maxTokenSize: MaxScanTokenSize,
    	}
    }
    
    // Err returns the first non-EOF error that was encountered by the [Scanner].
    func (s *Scanner) Err() error {
    	if s.err == io.EOF {
    		return nil
    	}
    	return s.err
    }
    
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Oct 23 09:06:30 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  10. internal/crypto/error.go

    // the string as a value that satisfies error of type crypto.Error
    func Errorf(format string, a ...interface{}) error {
    	e := fmt.Errorf(format, a...)
    	ee := Error{}
    	ee.msg = e.Error()
    	ee.cause = errors.Unwrap(e)
    	return ee
    }
    
    // Unwrap the internal error.
    func (e Error) Unwrap() error { return e.cause }
    
    // Error 'error' compatible method.
    func (e Error) Error() string {
    	if e.msg == "" {
    		return "crypto: cause <nil>"
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 28 17:44:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top