Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestGenerator (0.58 sec)

  1. pkg/controller/serviceaccount/tokens_controller_test.go

    	"k8s.io/client-go/kubernetes/fake"
    	core "k8s.io/client-go/testing"
    	"k8s.io/kubernetes/pkg/controller"
    	"k8s.io/kubernetes/test/utils/ktesting"
    )
    
    type testGenerator struct {
    	Token string
    	Err   error
    }
    
    func (t *testGenerator) GenerateToken(sc *jwt.Claims, pc interface{}) (string, error) {
    	return t.Token, t.Err
    }
    
    // emptySecretReferences is used by a service account without any secrets
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. pilot/pkg/security/authz/model/generator_test.go

    			}
    			principal := yamlPrincipal(t, tc.want)
    			if diff := cmp.Diff(got, principal, protocmp.Transform()); diff != "" {
    				t.Errorf("diff detected: %v", diff)
    			}
    		})
    	}
    }
    
    func TestGenerator(t *testing.T) {
    	cases := []struct {
    		name   string
    		g      generator
    		key    string
    		value  string
    		forTCP bool
    		want   any
    	}{
    		{
    			name:  "destIPGenerator",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 20 01:58:53 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. src/crypto/internal/edwards25519/edwards25519.go

    // NewIdentityPoint returns a new Point set to the identity.
    func NewIdentityPoint() *Point {
    	return new(Point).Set(identity)
    }
    
    // generator is the canonical curve basepoint. See TestGenerator for the
    // correspondence of this encoding with the values in RFC 8032.
    var generator, _ = new(Point).SetBytes([]byte{
    	0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
    	0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top