Skip to content

Commit cc17c9c

Browse files
authored
Test HTTPClientRequest (AsyncHttpClient#513)
* test `HTTPClientRequest.Prepared` and `HTTPClientRequest.Body` * add scheme and headers tests * fix tests
1 parent 93de326 commit cc17c9c

File tree

4 files changed

+632
-0
lines changed

4 files changed

+632
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// This source file is part of the AsyncHTTPClient open source project
4+
//
5+
// Copyright (c) 2018-2019 Apple Inc. and the AsyncHTTPClient project authors
6+
// Licensed under Apache License v2.0
7+
//
8+
// See LICENSE.txt for license information
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
10+
//
11+
// SPDX-License-Identifier: Apache-2.0
12+
//
13+
//===----------------------------------------------------------------------===//
14+
//
15+
// HTTPClientRequestTests+XCTest.swift
16+
//
17+
import XCTest
18+
19+
///
20+
/// NOTE: This file was generated by generate_linux_tests.rb
21+
///
22+
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
23+
///
24+
25+
extension HTTPClientRequestTests {
26+
static var allTests: [(String, (HTTPClientRequestTests) -> () throws -> Void)] {
27+
return [
28+
("testCustomHeadersAreRespected", testCustomHeadersAreRespected),
29+
("testUnixScheme", testUnixScheme),
30+
("testHTTPUnixScheme", testHTTPUnixScheme),
31+
("testHTTPSUnixScheme", testHTTPSUnixScheme),
32+
("testGetWithoutBody", testGetWithoutBody),
33+
("testPostWithoutBody", testPostWithoutBody),
34+
("testPostWithEmptyByteBuffer", testPostWithEmptyByteBuffer),
35+
("testPostWithByteBuffer", testPostWithByteBuffer),
36+
("testPostWithSequenceOfUnknownLength", testPostWithSequenceOfUnknownLength),
37+
("testPostWithSequenceWithFixedLength", testPostWithSequenceWithFixedLength),
38+
("testPostWithRandomAccessCollection", testPostWithRandomAccessCollection),
39+
("testPostWithAsyncSequenceOfUnknownLength", testPostWithAsyncSequenceOfUnknownLength),
40+
("testPostWithAsyncSequenceWithKnownLength", testPostWithAsyncSequenceWithKnownLength),
41+
]
42+
}
43+
}

0 commit comments

Comments
 (0)