Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newRepo (0.1 sec)

  1. src/cmd/go/internal/modfetch/codehost/vcs.go

    func vcsErrorf(format string, a ...any) error {
    	return &VCSError{Err: fmt.Errorf(format, a...)}
    }
    
    type vcsCacheKey struct {
    	vcs    string
    	remote string
    }
    
    func NewRepo(ctx context.Context, vcs, remote string) (Repo, error) {
    	return vcsRepoCache.Do(vcsCacheKey{vcs, remote}, func() (Repo, error) {
    		repo, err := newVCSRepo(ctx, vcs, remote)
    		if err != nil {
    			return nil, &VCSError{err}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. pkg/registry/discovery/endpointslice/strategy_test.go

    			Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS)
    			if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) {
    				t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS)
    			}
    		})
    	}
    }
    
    func Test_dropTopologyOnV1(t *testing.T) {
    	testcases := []struct {
    		name        string
    		v1Request   bool
    		newEPS      *discovery.EndpointSlice
    		originalEPS *discovery.EndpointSlice
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
Back to top