Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 23 of 23 for TestRoundTrip (0.29 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/aes/aes_test.go

    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		_, err := p.TransformToStorage(ctx, v, dataCtx)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    	b.StopTimer()
    }
    
    func TestRoundTrip(t *testing.T) {
    	lengths := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 128, 1024}
    
    	aes16block, err := aes.NewCipher(bytes.Repeat([]byte("a"), 16))
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  2. src/strconv/atof_test.go

    	// thread with 80-bit precision and the Go runtime didn't
    	// fix the FP control word.
    	{8865794286000691 << 39, "4.87402195346389e+27"},
    	{8865794286000692 << 39, "4.8740219534638903e+27"},
    }
    
    func TestRoundTrip(t *testing.T) {
    	for _, tt := range roundTripCases {
    		old := SetOptimize(false)
    		s := FormatFloat(tt.f, 'g', -1, 64)
    		if s != tt.s {
    			t.Errorf("no-opt FormatFloat(%b) = %s, want %s", tt.f, s, tt.s)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 16:24:57 UTC 2022
    - 23.6K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      status = file->Close();
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OK);
      if (!status.ok()) GTEST_SKIP() << "Close() not supported: " << status;
    }
    
    TEST_P(ModularFileSystemTest, TestRoundTrip) {
      const std::string filepath = GetURIForPath("a_file");
      std::unique_ptr<WritableFile> file;
      Status status = env_->NewWritableFile(filepath, &file);
      if (!status.ok())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 20:25:58 UTC 2022
    - 71K bytes
    - Viewed (0)
Back to top