Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 614 for checkers (1.52 sec)

  1. src/net/http/filetransport_test.go

    package http
    
    import (
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    	"testing/fstest"
    )
    
    func checker(t *testing.T) func(string, error) {
    	return func(call string, err error) {
    		if err == nil {
    			return
    		}
    		t.Fatalf("%s: %v", call, err)
    	}
    }
    
    func TestFileTransport(t *testing.T) {
    	check := checker(t)
    
    	dname := t.TempDir()
    	fname := filepath.Join(dname, "foo.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 17:07:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ConsumingQueueIterator.java

    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.Queue;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * An Iterator implementation which draws elements from a queue, removing them from the queue as it
     * iterates. This class is not thread safe.
     */
    @GwtCompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sat Jan 21 14:48:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/go/types/alias.go

    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyNotationIntegrationSpec.groovy

            succeeds 'checkDeps'
        }
    
        def "fails gracefully for invalid notations"() {
            when:
            buildFile <<  """
    configurations {
        conf
    }
    
    dependencies {
        conf 100
    }
    
    task checkDeps
    """
            then:
            fails 'checkDeps'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:17:32 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/DependencyHandlerProviderIntegrationTest.groovy

                doLast {
                   outFile << 'Hello'
                }
            }
    
            checkDeps.dependsOn resolve
    
            """
    
            when:
            args '-Pproject.version=1.1'
            succeeds 'checkDeps'
    
            then:
            executedAndNotSkipped ":checkDeps", ":resolve"
            resolve.expectGraph {
                root(":", "org:provider:1.0") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/return.go

    		}
    	}
    
    	return false
    }
    
    func (check *Checker) isTerminatingList(list []syntax.Stmt, label string) bool {
    	// trailing empty statements are permitted - skip them
    	for i := len(list) - 1; i >= 0; i-- {
    		if _, ok := list[i].(*syntax.EmptyStmt); !ok {
    			return check.isTerminating(list[i], label)
    		}
    	}
    	return false // all statements are empty
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/ForcedModulesIntegrationTest.groovy

    }
    
    configurations.all {
        resolutionStrategy.force 'org:foo:1.4.4'
    }
    
    task checkDeps {
        def compileClasspath = configurations.compileClasspath
        doLast {
            assert compileClasspath*.name == ['foo-1.4.4.jar']
        }
    }
    """
    
            expect:
            run("checkDeps")
        }
    
        void "can force the version of a transitive dependency module"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/FileDependencyResolveIntegrationTest.groovy

    '''
            file("sub/build.gradle") << '''
                dependencies {
                    compile files('sub.jar') { builtBy jar }
                }
    '''
    
            when:
            run ":checkDeps"
    
            then:
            executed ":jar", ":sub:jar", ":checkDeps"
            resolve.expectGraph {
                root(":", ":main:") {
                    files << "main.jar"
                    files << "sub.jar"
                    project(":sub", "main:sub:") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 23 22:33:17 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  9. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildCommandLineArgsIntegrationTest.groovy

            execute(buildA, ":checkDeps", ["--settings-file", "settings-copy.gradle"])
    
            then:
            assertTaskExecuted(":buildB", ":jar")
        }
    
        def "does not exclude tasks when building artifact for included build"() {
            given:
            dependency 'org.test:buildB:1.0'
    
            when:
            execute(buildA, ":checkDeps", ["--exclude-task", "jar"])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 09 12:02:33 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/testdata/libgo/libgo.go

    		}
    		return true
    	default:
    		return false
    	}
    }
    
    //export DidMainRun
    func DidMainRun() bool { return ranMain }
    
    //export CheckArgs
    func CheckArgs() {
    	if len(os.Args) != 3 || os.Args[1] != "arg1" || os.Args[2] != "arg2" {
    		fmt.Printf("CheckArgs: want [_, arg1, arg2], got: %v\n", os.Args)
    		os.Exit(2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 977 bytes
    - Viewed (0)
Back to top