Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testClose (0.14 sec)

  1. src/crypto/tls/handshake_server_test.go

    	s.Close()
    	var opErr *net.OpError
    	if !errors.As(err, &opErr) || opErr.Err != error(alertUnknownCA) {
    		t.Errorf("Got error: %s; expected: %s", err, error(alertUnknownCA))
    	}
    }
    
    func TestClose(t *testing.T) {
    	c, s := localPipe(t)
    	go c.Close()
    
    	err := Server(s, testConfig).Handshake()
    	s.Close()
    	if err != io.EOF {
    		t.Errorf("Got error: %s; expected: %s", err, io.EOF)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      status = file->Tell(&position);
      EXPECT_EQ(status.code(), Code::OK);
      EXPECT_EQ(position, test_data.size());
    }
    
    TEST_P(ModularFileSystemTest, TestClose) {
      const std::string filename = GetURIForPath("a_file");
      std::unique_ptr<WritableFile> file;
      Status status = env_->NewWritableFile(filename, &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)
  3. src/encoding/xml/marshal_test.go

    		EndElement{Name{"", "foo"}},
    	},
    	want: `<foo></foo>`,
    }, {
    	desc: "directive",
    	toks: []Token{
    		Directive("foo"),
    	},
    	want: `<!foo>`,
    }}
    
    func TestClose(t *testing.T) {
    	for _, tt := range closeTests {
    		tt := tt
    		t.Run(tt.desc, func(t *testing.T) {
    			var out strings.Builder
    			enc := NewEncoder(&out)
    			for j, tok := range tt.toks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    			buf := make([]byte, 1<<16)
    			for i := 0; i < len(buf); i += skip {
    				buf[i] = 1
    			}
    			for i := 0; i < b.N; i++ {
    				Index(buf, key)
    			}
    		})
    	}
    }
    
    func TestClone(t *testing.T) {
    	var cloneTests = [][]byte{
    		[]byte(nil),
    		[]byte{},
    		Clone([]byte{}),
    		[]byte(strings.Repeat("a", 42))[:0],
    		[]byte(strings.Repeat("a", 42))[:0:0],
    		[]byte("short"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top