Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 79 for exercise (0.3 sec)

  1. src/os/user/lookup_stubs.go

    package user
    
    import (
    	"fmt"
    	"os"
    	"runtime"
    	"strconv"
    )
    
    var (
    	// unused variables (in this implementation)
    	// modified during test to exercise code paths in the cgo implementation.
    	userBuffer  = 0
    	groupBuffer = 0
    )
    
    func current() (*User, error) {
    	uid := currentUID()
    	// $USER and /etc/passwd may disagree; prefer the latter if we can get it.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. src/runtime/runtime_linux_test.go

    import (
    	. "runtime"
    	"syscall"
    	"testing"
    	"time"
    	"unsafe"
    )
    
    var pid, tid int
    
    func init() {
    	// Record pid and tid of init thread for use during test.
    	// The call to LockOSThread is just to exercise it;
    	// we can't test that it does anything.
    	// Instead we're testing that the conditions are good
    	// for how it is used in init (must be on main thread).
    	pid, tid = syscall.Getpid(), syscall.Gettid()
    	LockOSThread()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 20:20:01 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. test/heapsampling.go

    func main() {
    	// Sample at 16K instead of default 512K to exercise sampling more heavily.
    	runtime.MemProfileRate = 16 * 1024
    
    	if err := testInterleavedAllocations(); err != nil {
    		panic(err.Error())
    	}
    	if err := testSmallAllocations(); err != nil {
    		panic(err.Error())
    	}
    }
    
    // Repeatedly exercise a set of allocations and check that the heap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

    import com.google.common.util.concurrent.ClosingFuture.DeferredCloser;
    import java.io.Closeable;
    import java.util.concurrent.ExecutionException;
    
    /** Tests for {@link ClosingFuture} that exercise {@link ClosingFuture#finishToFuture()}. */
    public class ClosingFutureFinishToFutureTest extends AbstractClosingFutureTest {
      public void testFinishToFuture_throwsIfCalledTwice() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java

    import com.google.common.util.concurrent.ClosingFuture.DeferredCloser;
    import java.io.Closeable;
    import java.util.concurrent.ExecutionException;
    
    /** Tests for {@link ClosingFuture} that exercise {@link ClosingFuture#finishToFuture()}. */
    public class ClosingFutureFinishToFutureTest extends AbstractClosingFutureTest {
      public void testFinishToFuture_throwsIfCalledTwice() throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. src/image/draw/bench_test.go

    		x := 3 * i % (dstw - srcw)
    		y := 7 * i % (dsth - srch)
    
    		DrawMask(dst, dst.Bounds().Add(image.Pt(x, y)), src, image.Point{}, mask, image.Point{}, op)
    	}
    }
    
    // The BenchmarkFoo functions exercise a drawFoo fast-path function in draw.go.
    
    func BenchmarkFillOver(b *testing.B) {
    	bench(b, color.RGBAModel, nil, nil, Over)
    }
    
    func BenchmarkFillSrc(b *testing.B) {
    	bench(b, color.RGBAModel, nil, nil, Src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. src/net/dial_unix_test.go

    		err := oldConnectFunc(fd, addr)
    		t.Logf("connect(%d, addr) = %v", fd, err)
    		if err == nil {
    			// On some operating systems, localhost
    			// connects _sometimes_ succeed immediately.
    			// Prevent that, so we exercise the code path
    			// we're interested in testing. This seems
    			// harmless. It makes FreeBSD 10.10 work when
    			// run with many iterations. It failed about
    			// half the time previously.
    			return syscall.EINPROGRESS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/metrics/timing_ratio_histogram_test.go

    	exerciseTimingRatioHistogram(t, testHistogramName, t0, clk, registry, tro)
    }
    
    // exerciseTimingRatioHistogram does a rough behavioral test of a
    // RatioedObserver.  A fake clock is used, and the exercise consists
    // of repeatedly changing that fake clock by an amount of time chosen
    // uniformly at random from a range that goes from a little negative
    // to somewhat more than two milliseconds.  The negative changes are
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 13 16:03:06 UTC 2022
    - 8.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/node_expansion_test.py

      # imported into MLIR for "no-op" node expansion.
      def testVarHandleOp(self):
        x = constant_op.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
    
        # Note: we purposely make multiple calls to VarHandleOp to exercise the
        # cached kernal lookup path that was exhibiting the VarHandleOp import
        # issue.
        unused_ = gen_resource_variable_ops.VarHandleOp(
            dtype=dtypes.float32, shape=[3, 2])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToValueAndCloserTest.java

    import java.util.concurrent.CountDownLatch;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.Executor;
    import java.util.concurrent.ExecutorService;
    
    /**
     * Tests for {@link ClosingFuture} that exercise {@link
     * ClosingFuture#finishToValueAndCloser(ValueAndCloserConsumer, Executor)}.
     */
    public class ClosingFutureFinishToValueAndCloserTest extends AbstractClosingFutureTest {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top