- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 77 for Deadcode (0.15 sec)
-
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/codenarc/CodeNarcPluginVersionIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 01 03:07:53 UTC 2023 - 8.7K bytes - Viewed (0) -
pkg/scheduler/internal/cache/cache.go
// if the node info list item is already at the head, we are done. if ni == cache.headNode { return } if ni.prev != nil { ni.prev.next = ni.next } if ni.next != nil { ni.next.prev = ni.prev } if cache.headNode != nil { cache.headNode.prev = ni } ni.next = cache.headNode ni.prev = nil cache.headNode = ni }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 24 09:56:48 UTC 2023 - 24.9K bytes - Viewed (0) -
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginVersionIntegrationTest.groovy
expect: succeeds("check") file("build/reports/pmd/main.xml").exists() file("build/reports/pmd/test.xml").exists() } def "analyze bad code"() { badCode() expect: fails("check") failure.assertHasDescription("Execution failed for task ':pmdTest'.") failure.assertThatCause(containsString("2 PMD rule violations were found. See the report at:"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Mar 28 18:47:00 UTC 2024 - 13.5K bytes - Viewed (0) -
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginDependenciesIntegrationTest.groovy
import org.gradle.integtests.fixtures.AbstractIntegrationSpec class CheckstylePluginDependenciesIntegrationTest extends AbstractIntegrationSpec { def setup() { writeBuildFile() writeConfigFile() badCode() } def "allows configuring tool dependencies explicitly"() { //Language has to be English, because the error message is localised defaultLocale('en') expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 21 12:23:38 UTC 2023 - 2.5K bytes - Viewed (0) -
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/checkstyle/CheckstylePluginVersionIntegrationTest.groovy
// file("build/reports/checkstyle/main.html").assertContents(containsLine(containsString("bad.properties"))) } def "analyze bad code"() { defaultLanguage('en') badCode() expect: fails("check") failure.assertHasDescription("Execution failed for task ':checkstyleMain'.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 01 03:07:53 UTC 2023 - 19.2K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
err := checkExample(t, example) if err == nil { t.Fatalf("no error in example #%d", i) } typerr, ok := err.(Error) if !ok { t.Fatalf("not a types.Error: %v", err) } if got := readCode(typerr); got != value { t.Errorf("%s: example #%d returned code %d (%s), want %d", name, i, got, err, value) } } }) }) } func walkCodes(t *testing.T, f func(string, int, *ast.ValueSpec)) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
platforms/jvm/scala/src/integTest/groovy/org/gradle/scala/compile/BasicZincScalaCompilerIntegrationTest.groovy
given: badCode() and: buildFile << "compileScala.options.failOnError = false\n" expect: succeeds 'compileScala' } def "compile bad scala code do not fail the build when scalaCompileOptions.failOnError is false"() { given: badCode() and:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 9.6K bytes - Viewed (0) -
src/net/http/httptest/recorder_test.go
badCodes := []int{ -100, 0, 99, 1000, 20000, } for _, badCode := range badCodes { badCode := badCode t.Run(fmt.Sprintf("Code=%d", badCode), func(t *testing.T) { defer func() { if r := recover(); r == nil { t.Fatal("Expected a panic") } }() handler := func(rw http.ResponseWriter, _ *http.Request) { rw.WriteHeader(badCode) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 23:17:38 UTC 2022 - 9.7K bytes - Viewed (0) -
internal/ioutil/read_file.go
// Because ReadFile reads the whole file, it does not treat an EOF from Read // as an error to be reported. func ReadFileWithFileInfo(name string) ([]byte, fs.FileInfo, error) { f, err := OsOpenFile(name, readMode, 0o666) if err != nil { return nil, nil, err } defer f.Close() st, err := f.Stat() if err != nil { return nil, nil, err } dst := make([]byte, st.Size()) _, err = io.ReadFull(f, dst)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Dec 09 18:17:51 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/jvm/code-quality/src/integTest/groovy/org/gradle/api/plugins/quality/pmd/PmdPluginDependenciesIntegrationTest.groovy
tasks.withType(Pmd) { // clear the classpath to avoid file locking issues on PMD version < 5.5.1 classpath = files() } """ badCode() } def "allows configuring tool dependencies explicitly"() { def testDependency = 'net.sourceforge.pmd:pmd:5.1.1' expect: //defaults exist and can be inspected
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jun 21 12:23:38 UTC 2023 - 3.6K bytes - Viewed (0)