Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 495 for addLink (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    	b.addLine(s, indent)
    }
    
    func writeFuncFooter(b *buffer, structName string, indent int) {
    	b.addLine("}\n", indent) // Closes the map definition
    
    	s := fmt.Sprintf("func (%s) SwaggerDoc() map[string]string {\n", structName)
    	b.addLine(s, indent)
    	s = fmt.Sprintf("return map_%s\n", structName)
    	b.addLine(s, indent+1)
    	b.addLine("}\n", indent) // Closes the function definition
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy

            @Override
            Builder printArguments() {
                return addLine('echo "$*"')
            }
    
            @Override
            Builder printText(String text) {
                return addLine("echo '$text'")
            }
    
            @Override
            Builder printEnvironmentVariable(String variableName) {
                return addLine("echo $variableName=\$$variableName")
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/EmptyBlocksTest.kt

            assertTrue { result.configuredLazy.isInitialized() }
        }
    
        @Test
        fun `empty adding block ensures that the object is created`() {
            val resolution = schema.resolve(
                """
                adding()
                adding { }
                adding { x = 2 }
                addingWithArg(3)
                addingWithArg(4) { }
                """.trimIndent()
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/TestSchema.kt

    import org.gradle.declarative.dsl.model.annotations.Adding
    import org.gradle.declarative.dsl.model.annotations.Restricted
    
    
    class MyClass {
        @get:Restricted
        lateinit var my: MyClass
    }
    
    
    class TopLevel {
        @Adding
        fun my1(): MyClass = MyClass()
    
        @Adding
        fun my2(): MyClass = MyClass()
    
        @Adding
        fun my(configure: MyClass.() -> Unit) = MyClass().also(configure)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 23:16:59 UTC 2024
    - 443 bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/ProjectConfigurationIntegrationTest.groovy

            buildFile << '''
                allprojects { p ->
                    println "[1] Adding afterEvaluate for $p.name"
                    p.afterEvaluate {
                        println "[1] afterEvaluate $p.name"
                    }
                }
    
                project(':a') {
                    println "[2] Adding evaluationDependsOn"
                    evaluationDependsOn(':b')
                }
    
                allprojects { p ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. misc/chrome/gophertool/popup.js

      chrome.tabs.create({ "url": url })
    }
    
    function addLinks() {
      var links = document.getElementsByTagName("a");
      for (var i = 0; i < links.length; i++) {
        var url = links[i].getAttribute("url");
        if (url)
          links[i].addEventListener("click", function () {
            openURL(this.getAttribute("url"));
          });
      }
    }
    
    window.addEventListener("load", function () {
      addLinks();
      console.log("hacking gopher pop-up loaded.");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 21 17:05:21 UTC 2012
    - 1020 bytes
    - Viewed (0)
  7. src/internal/fuzz/queue_test.go

    	N := 32
    	for i := 0; i < N; i++ {
    		q.enqueue(i)
    		if n := q.len; n != i+1 {
    			t.Fatalf("after adding %d elements, queue has len %d", i, n)
    		}
    		if v, ok := q.peek(); !ok {
    			t.Fatalf("couldn't peek after adding %d elements", i)
    		} else if v.(int) != 0 {
    			t.Fatalf("after adding %d elements, peek is %d; want 0", i, v)
    		}
    	}
    
    	// As we remove and add elements, len should shrink and grow.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 02 17:58:51 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  8. test/fixedbugs/issue19359.go

    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("del failed: %v", r)
    		}
    	}()
    	delete(m, key)
    	return nil
    }
    
    func addInt(m map[interface{}]int, key interface{}) (err error) {
    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("addInt failed: %v", r)
    		}
    	}()
    	m[key] += 2018
    	return nil
    }
    
    func addStr(m map[interface{}]string, key interface{}) (err error) {
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 20 01:47:07 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/LambdaOverloadResolutionTest.kt

            val addedObjects = mutableListOf<AddedObject>()
    
            @Adding
            @Suppress("unused")
            fun addSomething(x: Int, configure: AddedObject.() -> Unit): AddedObject =
                AddedObject("addSomething($x) { ... }")
                    .also(configure)
                    .also(addedObjects::add)
    
            @Adding
            fun addSomething(x: Int): AddedObject =
                AddedObject("addSomething($x)")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 26 12:27:49 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. internal/store/batch_test.go

    	}
    	keys, items, err = batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != 1 {
    		t.Fatalf("Expected length of the batch items to be 1 but got %v", len(items))
    	}
    	if len(keys) != 1 {
    		t.Fatalf("Expected length of the batch keys to be 1 but got %v", len(items))
    	}
    	// try adding again after Get.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top