Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 371 for IsType (0.1 sec)

  1. src/cmd/fix/typecheck.go

    // x's type is "int" but T's type is "type int".
    // mkType inserts the "type " prefix.
    // getType removes it.
    // isType tests for it.
    
    func mkType(t string) string {
    	return "type " + t
    }
    
    func getType(t string) string {
    	if !isType(t) {
    		return ""
    	}
    	return t[len("type "):]
    }
    
    func isType(t string) bool {
    	return strings.HasPrefix(t, "type ")
    }
    
    // TypeConfig describes the universe of relevant types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationsFixture.groovy

            return getTree().first(type, predicate)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
        public <T extends BuildOperationType<?, ?>> boolean isType(BuildOperationRecord record, Class<T> type) {
            return getTree().isType(record, type)
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 09:21:24 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_node_status_test.go

    	// Report node status.
    	kubelet.updateRuntimeUp()
    	assert.NoError(t, kubelet.updateNodeStatus(ctx))
    
    	actions := kubeClient.Actions()
    	assert.Len(t, actions, 2)
    	assert.IsType(t, core.GetActionImpl{}, actions[0])
    	assert.IsType(t, core.PatchActionImpl{}, actions[1])
    	patchAction := actions[1].(core.PatchActionImpl)
    
    	updatedNode, err := applyNodeStatusPatch(existingNode, patchAction.GetPatch())
    	require.NoError(t, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/container_manager_linux_test.go

    			},
    		},
    	}
    
    	for _, c := range cases {
    		c := c
    		t.Run(c.name, func(t *testing.T) {
    			t.Parallel()
    			pcm := c.cm.NewPodContainerManager()
    			if c.cm.NodeConfig.CgroupsPerQOS {
    				assert.IsType(t, &podContainerManagerImpl{}, pcm)
    				got := pcm.(*podContainerManagerImpl)
    				assert.Equal(t, c.cm.subsystems, got.subsystems)
    				assert.Equal(t, c.cm.cgroupManager, got.cgroupManager)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/type.go

    type TypeAndValue struct {
    	Type  Type
    	Value constant.Value
    	exprFlags
    }
    
    type exprFlags uint16
    
    func (f exprFlags) IsVoid() bool          { return f&1 != 0 }
    func (f exprFlags) IsType() bool          { return f&2 != 0 }
    func (f exprFlags) IsBuiltin() bool       { return f&4 != 0 } // a language builtin that resembles a function call, e.g., "make, append, new"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLoggingIntegrationTest.groovy

            def logOperations = buildOperations.all(ExecuteWorkItemBuildOperationType)
            def taskOperations = logOperations.collect {
                buildOperations.parentsOf(it).reverse().find { parent -> buildOperations.isType(parent, ExecuteTaskBuildOperationType) }
            }.unique()
            taskOperations.size() == 2
            taskOperations.collect {it.displayName }.containsAll(['Task :runInWorker', 'Task :runInWorker2'])
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/daemon/JavaCompilerDaemonReuseIntegrationTest.groovy

            def taskOperations =
                compilerOperations.collectEntries {
                    def op = buildOperations.parentsOf(it).reverse().find {
                        parent -> buildOperations.isType(parent, ExecuteTaskBuildOperationType)
                    }
                    [op.displayName, it]
                }
    
            def tasks = ['Task :compileJava', 'Task :compileMain2Java']
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 13:00:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/internal/analysisutil/util.go

    func HasSideEffects(info *types.Info, e ast.Expr) bool {
    	safe := true
    	ast.Inspect(e, func(node ast.Node) bool {
    		switch n := node.(type) {
    		case *ast.CallExpr:
    			typVal := info.Types[n.Fun]
    			switch {
    			case typVal.IsType():
    				// Type conversion, which is safe.
    			case typVal.IsBuiltin():
    				// Builtin func, conservatively assumed to not
    				// be safe for now.
    				safe = false
    				return false
    			default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/BuildOperationTreeFixture.groovy

            }
        }
    
        @Override
        @SuppressWarnings("GrUnnecessaryPublicModifier")
        public <T extends BuildOperationType<?, ?>> boolean isType(BuildOperationRecord record, Class<T> type) {
            assert record.detailsType
            def detailsType = BuildOperationTypes.detailsType(type)
            detailsType.isAssignableFrom(record.detailsType)
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 23:08:20 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/audit_test.go

    			if w == nil {
    				return
    			}
    
    			if options.LogOptions.Path == "-" {
    				assert.Equal(t, os.Stdout, w)
    				assert.NoFileExists(t, options.LogOptions.Path)
    			} else {
    				assert.IsType(t, (*lumberjack.Logger)(nil), w)
    				assert.FileExists(t, options.LogOptions.Path)
    			}
    		})
    	}
    }
    
    func TestAuditInvalidOptions(t *testing.T) {
    	tmpDir := t.TempDir()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 27 14:57:26 UTC 2022
    - 7.8K bytes
    - Viewed (0)
Back to top