Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 69 for Deadcode (0.13 sec)

  1. src/runtime/cpuprof.go

    	lock(&cpuprof.lock)
    	log := cpuprof.log
    	unlock(&cpuprof.lock)
    	readMode := profBufBlocking
    	if GOOS == "darwin" || GOOS == "ios" {
    		readMode = profBufNonBlocking // For #61768; on Darwin notes are not async-signal-safe.  See sigNoteSetup in os_darwin.go.
    	}
    	data, tags, eof := log.read(readMode)
    	if len(data) == 0 && eof {
    		lock(&cpuprof.lock)
    		cpuprof.log = nil
    		unlock(&cpuprof.lock)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  2. src/compress/flate/huffman_bit_writer.go

    	}
    
    	cgnl = codegen[numLiterals : numLiterals+numOffsets]
    	for i := range cgnl {
    		cgnl[i] = uint8(offEnc.codes[i].len)
    	}
    	codegen[numLiterals+numOffsets] = badCode
    
    	size := codegen[0]
    	count := 1
    	outIndex := 0
    	for inIndex := 1; size != badCode; inIndex++ {
    		// INVARIANT: We have seen "count" copies of size that have not yet
    		// had output generated for them.
    		nextSize := codegen[inIndex]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 22:59:14 UTC 2022
    - 18.4K bytes
    - Viewed (0)
  3. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginHtmlReportIntegrationTest.groovy

                     * @return return the bar
                     */
                    public String getBar() {
                        return "bar";
                    }
                }
            """
        }
    
        private void badCode() {
            file("src/main/java/com/example/Foo.java").java """
                package com.example;
    
                public class Foo {
                    public String getBar() {
                        return "bar";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/WorkNodeCodec.kt

            val nodeCount = readSmallInt()
            val nodes = ArrayList<Node>(nodeCount)
            val nodesById = HashMap<Int, Node>(nodeCount)
            for (i in 0 until nodeCount) {
                val node = readNode()
                nodesById[nodesById.size] = node
                if (node is LocalTaskNode) {
                    node.prepareNode.require()
                    nodesById[nodesById.size] = node.prepareNode
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. hack/verify-e2e-test-ownership.sh

      cat >"${results_jq}" <<EOS
      [.[] |  select( .LeafNodeType == "It") | . as { ContainerHierarchyTexts: \$text, ContainerHierarchyLocations: \$code, LeafNodeText: \$leafText,  LeafNodeLocation: \$leafCode} | {
          calls: ([ \$text | range(0;length) as \$i | {
            sig: ((\$text[\$i] | match("\\\[(sig-[^\\\]]+)\\\]") | .captures[0].string) // "unknown"),
            text: \$text[\$i],
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 06:46:18 UTC 2022
    - 7.3K bytes
    - Viewed (0)
  6. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginToolchainsIntegrationTest.groovy

            file("build/reports/checkstyle/main.html").assertExists()
        }
    
        def "analyze bad code with the toolchain JDK"() {
            executer.withDefaultLocale(new Locale('en'))
            badCode()
            def jdk = setupExecutorForToolchains()
            writeBuildFileWithToolchainsFromJavaPlugin(jdk)
            writeConfigFileWithTypeName()
    
            expect:
            fails("checkstyleMain")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 16 22:34:07 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcGroovyVersionIntegrationTest.groovy

            latestGroovy3Version | CodeNarcPlugin.STABLE_VERSION
            latestGroovy4Version | CodeNarcPlugin.STABLE_VERSION_WITH_GROOVY4_SUPPORT
        }
    
        def "analyze bad code"() {
            badCode()
            writeBuildFile(groovyVersion, codenarcVersion)
    
            expect:
            fails("check")
            failure.assertHasDescription("Execution failed for task ':codenarcTest'.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 21 12:23:38 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcTestFixture.groovy

            file("src/main/groovy/org/gradle/Class2.groovy") << "package org.gradle; class Class2 { }"
            file("src/test/groovy/org/gradle/TestClass2.groovy") << "package org.gradle; class TestClass2 { }"
        }
    
        def badCode() {
            file("src/main/groovy/org/gradle/class1.java") << "package org.gradle; class class1 { }"
            file("src/main/groovy/org/gradle/Class2.groovy") << "package org.gradle; class Class2 { }"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 08:01:57 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. cmd/os_unix.go

    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) error {
    	fd, err := openFileWithFD(dirPath, readMode, 0o666)
    	if err != nil {
    		if osErrToFileErr(err) == errFileNotFound {
    			return nil
    		}
    		if !osIsPermission(err) {
    			return osErrToFileErr(err)
    		}
    		// There may be permission error when dirPath
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/java/compile/AbstractJavaCompilerIntegrationSpec.groovy

            javaClassFile("compile/test/Person.class").exists()
        }
    
        def "compile bad code breaks the build and compilation error doesn't show link to help.gradle.org"() {
            given:
            badCode()
    
            when:
            fails("compileJava")
    
            then:
            output.contains(logStatement())
            failure.assertHasErrorOutput("';' expected")
            failure.assertNotOutput("https://help.gradle.org")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 01 01:34:12 UTC 2024
    - 27.4K bytes
    - Viewed (0)
Back to top