Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 264 for stinky (0.09 sec)

  1. src/testing/testing_windows_test.go

    // license that can be found in the LICENSE file.
    
    package testing_test
    
    import (
    	"testing"
    	"time"
    )
    
    var sink time.Time
    var sinkHPT testing.HighPrecisionTime
    
    func BenchmarkTimeNow(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		sink = time.Now()
    	}
    }
    
    func BenchmarkHighPrecisionTimeNow(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		sinkHPT = testing.HighPrecisionTimeNow()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 490 bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/TestOption.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    /**
     * Options controlling the behavior of sources/sinks/streams for testing.
     *
     * @author Colin Decker
     */
    public enum TestOption {
      OPEN_THROWS,
      SKIP_THROWS,
      READ_THROWS,
      WRITE_THROWS,
      CLOSE_THROWS,
      AVAILABLE_ALWAYS_ZERO
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 870 bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/TestOption.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    /**
     * Options controlling the behavior of sources/sinks/streams for testing.
     *
     * @author Colin Decker
     */
    public enum TestOption {
      OPEN_THROWS,
      SKIP_THROWS,
      READ_THROWS,
      WRITE_THROWS,
      CLOSE_THROWS,
      AVAILABLE_ALWAYS_ZERO
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 08 16:34:30 UTC 2013
    - 870 bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

        randomAccessFile!!.getChannel().force(false)
        val source = file!!.source().buffer()
        return source.readByteString()
      }
    
      private fun write(data: ByteString) {
        val sink = file!!.sink().buffer()
        sink.write(data)
        sink.close()
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

          }
    
          override fun writeTo(sink: BufferedSink) {
            sink.writeUtf8("<el")
            sink.flush()
            throw IOException("failed to stream the XML")
          }
        }
    
        class ValidRequestBody : RequestBody() {
          override fun contentType(): MediaType {
            return "application/xml".toMediaType()
          }
    
          override fun writeTo(sink: BufferedSink) {
            sink.writeUtf8("<element/>")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/regexp/syntax/prog_test.go

    		}
    		EmptyOpContext(r1, -1)
    	}
    }
    
    var sink any
    
    func BenchmarkIsWordChar(b *testing.B) {
    	const chars = "Don't communicate by sharing memory, share memory by communicating."
    	for i := 0; i < b.N; i++ {
    		for _, r := range chars {
    			sink = IsWordChar(r)
    		}
    	}
    	if sink == nil {
    		b.Fatal("Benchmark did not run")
    	}
    	sink = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 14 04:39:42 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/net/http/responsecontroller_test.go

    		}
    
    		w.Write([]byte("two"))
    		if err := ctl.Flush(); err == nil {
    			t.Errorf("after setting deadline: ctl.Flush() = nil, want non-nil")
    		}
    		// Connection errors are sticky, so resetting the deadline does not permit
    		// making more progress. We might want to change this in the future, but verify
    		// the current behavior for now. If we do change this, we'll want to make sure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. test/align.go

    type T struct {
    	pad uint32
    	f float64
    }
    
    //go:noinline
    func f(t, u *T) float64 {
    	return 3.0 + t.f + u.f
    }
    
    func main() {
    	t := [2]T{{0, 1.0}, {0, 2.0}}
    	sink = f(&t[0], &t[1])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 09 18:57:37 UTC 2018
    - 603 bytes
    - Viewed (0)
  9. test/fixedbugs/issue29735.go

    		f := runtime.FuncForPC(stack[0] + i)
    		if f.Name() != "main.main" && f.Name() != "main.f" {
    			// Reached next function successfully.
    			break
    		}
    	}
    }
    
    func f() {
    	sink = 0 // one instruction which can't be removed
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 14 23:37:39 UTC 2019
    - 686 bytes
    - Viewed (0)
  10. src/internal/trace/testdata/testprog/gc-stress.go

    var trees [16]*node
    var ballast *[16]*[1024]*node
    var sink [][]byte
    
    func main() {
    	for i := range trees {
    		trees[i] = makeTree(6)
    	}
    	ballast = new([16]*[1024]*node)
    	for i := range ballast {
    		ballast[i] = new([1024]*node)
    		for j := range ballast[i] {
    			ballast[i][j] = &node{
    				data: [128]byte{1, 2, 3, 4},
    			}
    		}
    	}
    
    	procs := runtime.GOMAXPROCS(-1)
    	sink = make([][]byte, procs)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top