Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for AsMap (0.08 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractIntegrationSpec.groovy

            }
            if (problem.additionalData?.asMap.size() == 1) {
                println "    additionalData.asMap == [ '${problem.additionalData.asMap.keySet().iterator().next()}' : '${problem.additionalData.asMap.values().iterator().next()}' ]"
            } else if (problem.additionalData?.asMap.size() > 1) {
                println "    additionalData.asMap == ["
                problem.additionalData.asMap.each { key, value ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/compile/JavaCompileProblemsIntegrationTest.groovy

                assertProblem(it, "ERROR", false)
                fqid == 'compilation:java:java-compilation-error'
                details == 'warnings found and -Werror specified'
                solutions.empty
                additionalData.asMap == ["formatted": "error: warnings found and -Werror specified"]
            }
    
            // Based on the Java version, the types in the lint message will differ...
            String expectedType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 16:15:29 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r89/ProblemProgressEventCrossVersionTest.groovy

                (locations[1] as LineInFileLocation).path == "build file '$buildFile.path'"
                additionalData instanceof GeneralData
                additionalData.asMap['type'] == 'USER_CODE_DIRECT'
            }
        }
    
        def "Problems expose details via Tooling API events with failure"() {
            given:
            withReportProblemTask """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

                details == 'Gradle cannot track the implementation for classes loaded with an unknown classloader.'
                solutions == [ 'Load your class by using one of Gradle\'s built-in ways.' ]
                additionalData.asMap == [
                    'typeName' : 'CustomTask'
                ]
            }
            verifyAll(receivedProblem(1)) {
                fqid == 'validation:property-validation:unknown-implementation'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/certs/certlist.go

    		}
    	}
    
    	return caMap, nil
    }
    
    // Certificates is a list of Certificates that Kubeadm should create.
    type Certificates []*KubeadmCert
    
    // AsMap returns the list of certificates as a map, keyed by name.
    func (c Certificates) AsMap() CertificateMap {
    	certMap := make(map[string]*KubeadmCert)
    	for _, cert := range c {
    		certMap[cert.Name] = cert
    	}
    
    	return certMap
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 16:01:49 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> putAll(Multimap<? extends K, ? extends V> multimap) {
          for (Entry<? extends K, ? extends Collection<? extends V>> entry :
              multimap.asMap().entrySet()) {
            putAll(entry.getKey(), entry.getValue());
          }
          return this;
        }
    
        @CanIgnoreReturnValue
        @Override
        Builder<K, V> combine(ImmutableMultimap.Builder<K, V> other) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

                solutions == [
                    "Use a $fileType as an input",
                    "Declare the input as a ${getOppositeKind(fileType)} instead",
                ].collect { it.toString() }
                additionalData.asMap == [
                    'typeName': 'org.gradle.api.DefaultTask',
                    'propertyName': 'input',
                ]
            }
    
            where:
            method | path             | fileType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

      }
    
      /**
       * Returns an immutable multimap containing the same mappings as {@code multimap}. The generated
       * multimap's key and value orderings correspond to the iteration ordering of the {@code
       * multimap.asMap()} view.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  9. internal/hash/checksum.go

    		}
    	}
    
    	if !bytes.Equal(sum, c.Raw) {
    		return ChecksumMismatch{
    			Want: c.Encoded,
    			Got:  base64.StdEncoding.EncodeToString(sum),
    		}
    	}
    	return nil
    }
    
    // AsMap returns the
    func (c *Checksum) AsMap() map[string]string {
    	if c == nil || !c.Valid() {
    		return nil
    	}
    	return map[string]string{c.Type.String(): c.Encoded}
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 08 16:18:34 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  10. platforms/ide/problems-api/src/integTest/groovy/org/gradle/api/problems/ProblemsServiceIntegrationTest.groovy

                        it.put('key','value')
                    }
                }
            """
    
            when:
            run('reportProblem')
    
            then:
            receivedProblem.additionalData.asMap == ['key': 'value']
        }
    
        def "cannot emit a problem with invalid additional data"() {
            given:
            buildScript 'class InvalidData implements org.gradle.api.problems.internal.AdditionalData {}'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top