Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for generatedCode (0.17 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/catalog/ProjectAccessorsSourceGeneratorTest.groovy

            }
        }
    
        @CompileStatic
        private class GeneratedCode {
            private final String name
            private final String generatedCode
    
            GeneratedCode(String name, String code) {
                this.name = name
                this.generatedCode = code
            }
    
            private int lineOfSubAccessor(String projectPath) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/codegen/GradleApiExtensionsTest.kt

                        `extendedFunction`(`type`.java)
                    """,
                )
    
                assertSingleSourceFileGeneratedFor(IncubatingType::class).readText().also { generatedCode ->
                    assertThat(generatedCode, containsString("@file:${Incubating::class.java.name}"))
                }
            }
        }
    
        @Test
        fun `maps incubating function`() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Nov 12 16:16:08 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    				return true
    			}
    		}
    	}
    	return false
    }
    
    // Matches cgo generated comment as well as the proposed standard:
    //
    //	https://golang.org/s/generatedcode
    var generatedRx = regexp.MustCompile(`// .*DO NOT EDIT\.?`)
    
    // origin returns the original uninstantiated symbol for obj.
    func origin(obj types.Object) types.Object {
    	switch obj := obj.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. src/hash/crc32/gen_const_ppc64le.go

    		div = (div << 1) | high
    		mod <<= 1
    		if high != 0 {
    			mod ^= poly
    		}
    		n--
    	}
    	return mod & mask, div
    }
    
    func main() {
    	w := new(bytes.Buffer)
    
    	// Standard: https://go.dev/s/generatedcode
    	fmt.Fprintln(w, `// Code generated by "go run gen_const_ppc64le.go"; DO NOT EDIT.`)
    	fmt.Fprintln(w)
    	fmt.Fprintln(w, `#include "textflag.h"`)
    
    	// These are the polynomials supported in vector now.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/go/ast/ast.go

    func (p *Package) End() token.Pos { return token.NoPos }
    
    // IsGenerated reports whether the file was generated by a program,
    // not handwritten, by detecting the special comment described
    // at https://go.dev/s/generatedcode.
    //
    // The syntax tree must have been parsed with the [parser.ParseComments] flag.
    // Example:
    //
    //	f, err := parser.ParseFile(fset, filename, src, parser.ParseComments|parser.PackageClauseOnly)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  6. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    			driverName:   "com.example.csi.driver1",
    			existingNode: generateNode(nil /* nodeIDs */, nil /* labels */, nil /*capacity*/),
    			inputNodeID:  "",
    			expectFail:   true,
    		},
    		{
    			name:             "new node with valid max limit of volumes",
    			driverName:       "com.example.csi.driver1",
    			existingNode:     generateNode(nil /*nodeIDs*/, nil /*labels*/, nil /*capacity*/),
    			inputVolumeLimit: 10,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

          padding=padding,
          data_format='NHWC')
    
    
    def main(_):
      if FLAGS.gen_register_op:
        assert FLAGS.output.endswith('.cc')
        generated_code = gen_register_op(sys.modules[__name__], '_composite_')
      else:
        assert FLAGS.output.endswith('.mlir')
        generated_code = tfr_gen_from_module(sys.modules[__name__], '_composite_',)
    
      dirname = os.path.dirname(FLAGS.output)
      if not os.path.exists(dirname):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/build.gradle.kts

    dependencies {
        implementation(project(":compiler:fir:fir-serialization"))
        implementation(project(":compiler:backend"))
        generatorClasspath(project(":analysis:analysis-api-fir:analysis-api-fir-generator"))
    }
    
    val generateCode by tasks.registering(NoDebugJavaExec::class) {
        val generatorRoot = "$projectDir/analysis/analysis-api-fir/analysis-api-fir-generator/src/"
    
        val generatorConfigurationFiles = fileTree(generatorRoot) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    			return false
    		}
    	}
    	return true
    }
    
    func (s *nodeTainterTestServer) addTaintedNodes(t *testing.T, nodes ...string) {
    	t.Helper()
    	for _, node := range nodes {
    		node := generateNode(node, nil)
    		// add our special taint
    		node.Spec.Taints = append(node.Spec.Taints, corev1.Taint{
    			Key:    TaintName,
    			Value:  "true",
    			Effect: corev1.TaintEffectNoSchedule,
    		})
    		s.nc.Create(node)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    	}{
    		{
    			name: "should return correct az for given address",
    			pods: []*corev1.Pod{pod1, pod2},
    			nodes: []*corev1.Node{
    				generateNode("node1", map[string]string{NodeZoneLabel: "zone1", NodeRegionLabel: "region1", label.TopologySubzone.Name: "subzone1"}),
    				generateNode("node2", map[string]string{NodeZoneLabel: "zone2", NodeRegionLabel: "region2", label.TopologySubzone.Name: "subzone2"}),
    			},
    			wantAZ: map[*corev1.Pod]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
Back to top