Generate LinuxMain.swift
This commit is contained in:
parent
00e95c021a
commit
87589c8b90
|
@ -1,6 +1,8 @@
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
import ULIDTests
|
import ULIDTests
|
||||||
|
|
||||||
var tests = [XCTestCaseEntry]()
|
var tests = [XCTestCaseEntry]()
|
||||||
tests += ULIDTests.allTests()
|
tests += ULIDTests.__allTests()
|
||||||
|
|
||||||
XCTMain(tests)
|
XCTMain(tests)
|
||||||
|
|
|
@ -224,28 +224,4 @@ final class Base32Tests: XCTestCase {
|
||||||
XCTAssertNil(data)
|
XCTAssertNil(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: -
|
|
||||||
|
|
||||||
static var allTests = [
|
|
||||||
("testEncodeBase32", testEncodeBase32),
|
|
||||||
("testEncode1", testEncode1),
|
|
||||||
("testEncode2", testEncode2),
|
|
||||||
("testEncode3", testEncode3),
|
|
||||||
("testEncode4", testEncode4),
|
|
||||||
("testEncode5", testEncode5),
|
|
||||||
("testEncode6", testEncode6),
|
|
||||||
("testEncode7", testEncode7),
|
|
||||||
("testEncode8", testEncode8),
|
|
||||||
("testEncodePad1", testEncodePad1),
|
|
||||||
("testEncodePad2", testEncodePad2),
|
|
||||||
("testEncodePad3", testEncodePad3),
|
|
||||||
("testEncodePad4", testEncodePad4),
|
|
||||||
("testEncodeNoPad", testEncodeNoPad),
|
|
||||||
("testDecodeBase32", testDecodeBase32),
|
|
||||||
("testDecodeTable", testDecodeTable),
|
|
||||||
("testDecodeInvalidCharacter", testDecodeInvalidCharacter),
|
|
||||||
("testDecodePadding", testDecodePadding),
|
|
||||||
("testDecodeIncorrectLength", testDecodeIncorrectLength)
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -230,27 +230,6 @@ final class ULIDTests: XCTestCase {
|
||||||
XCTAssertEqual(16, MemoryLayout<ULID>.size)
|
XCTAssertEqual(16, MemoryLayout<ULID>.size)
|
||||||
}
|
}
|
||||||
|
|
||||||
static var allTests = [
|
|
||||||
("testGenerateTimestamp", testGenerateTimestamp),
|
|
||||||
("testGenerateRandomness", testGenerateRandomness),
|
|
||||||
("testParseULIDString", testParseULIDString),
|
|
||||||
("testParseULIDData", testParseULIDData),
|
|
||||||
("testULIDDataLength", testULIDDataLength),
|
|
||||||
("testULIDStringLength", testULIDStringLength),
|
|
||||||
("testHashable1", testHashable1),
|
|
||||||
("testHashable2", testHashable2),
|
|
||||||
("testHashable3", testHashable3),
|
|
||||||
("testEquatable1", testEquatable1),
|
|
||||||
("testEquatable2", testEquatable2),
|
|
||||||
("testComparable1", testComparable1),
|
|
||||||
("testComparable2", testComparable2),
|
|
||||||
("testComparable3", testComparable3),
|
|
||||||
("testCustomStringConvertible", testCustomStringConvertible),
|
|
||||||
("testDecodable", testDecodable),
|
|
||||||
("testEncodable", testEncodable),
|
|
||||||
("testMemorySize", testMemorySize)
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private struct MockRandomNumberGenerator: RandomNumberGenerator {
|
private struct MockRandomNumberGenerator: RandomNumberGenerator {
|
||||||
|
|
|
@ -1,18 +1,67 @@
|
||||||
//
|
#if !canImport(ObjectiveC)
|
||||||
// XCTestManifests.swift
|
|
||||||
// ULIDTests
|
|
||||||
//
|
|
||||||
// Created by Yasuhiro Hatta on 2019/01/11.
|
|
||||||
// Copyright © 2019 yaslab. All rights reserved.
|
|
||||||
//
|
|
||||||
|
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
#if !os(macOS)
|
extension Base32Tests {
|
||||||
public func allTests() -> [XCTestCaseEntry] {
|
// DO NOT MODIFY: This is autogenerated, use:
|
||||||
|
// `swift test --generate-linuxmain`
|
||||||
|
// to regenerate.
|
||||||
|
static let __allTests__Base32Tests = [
|
||||||
|
("testDecodeBase32", testDecodeBase32),
|
||||||
|
("testDecodeIncorrectLength", testDecodeIncorrectLength),
|
||||||
|
("testDecodeInvalidCharacter", testDecodeInvalidCharacter),
|
||||||
|
("testDecodePadding", testDecodePadding),
|
||||||
|
("testDecodeTable", testDecodeTable),
|
||||||
|
("testEncode1", testEncode1),
|
||||||
|
("testEncode2", testEncode2),
|
||||||
|
("testEncode3", testEncode3),
|
||||||
|
("testEncode4", testEncode4),
|
||||||
|
("testEncode5", testEncode5),
|
||||||
|
("testEncode6", testEncode6),
|
||||||
|
("testEncode7", testEncode7),
|
||||||
|
("testEncode8", testEncode8),
|
||||||
|
("testEncodeBase32", testEncodeBase32),
|
||||||
|
("testEncodeNoPad", testEncodeNoPad),
|
||||||
|
("testEncodePad1", testEncodePad1),
|
||||||
|
("testEncodePad2", testEncodePad2),
|
||||||
|
("testEncodePad3", testEncodePad3),
|
||||||
|
("testEncodePad4", testEncodePad4),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
extension ULIDTests {
|
||||||
|
// DO NOT MODIFY: This is autogenerated, use:
|
||||||
|
// `swift test --generate-linuxmain`
|
||||||
|
// to regenerate.
|
||||||
|
static let __allTests__ULIDTests = [
|
||||||
|
("testComparable1", testComparable1),
|
||||||
|
("testComparable2", testComparable2),
|
||||||
|
("testComparable3", testComparable3),
|
||||||
|
("testComparable4", testComparable4),
|
||||||
|
("testCustomStringConvertible", testCustomStringConvertible),
|
||||||
|
("testDecodable", testDecodable),
|
||||||
|
("testDecodableError", testDecodableError),
|
||||||
|
("testEncodable", testEncodable),
|
||||||
|
("testEquatable1", testEquatable1),
|
||||||
|
("testEquatable2", testEquatable2),
|
||||||
|
("testGenerateRandomness", testGenerateRandomness),
|
||||||
|
("testGenerateTimestamp", testGenerateTimestamp),
|
||||||
|
("testHashable1", testHashable1),
|
||||||
|
("testHashable2", testHashable2),
|
||||||
|
("testHashable3", testHashable3),
|
||||||
|
("testMemorySize", testMemorySize),
|
||||||
|
("testParseULIDData", testParseULIDData),
|
||||||
|
("testParseULIDDataError", testParseULIDDataError),
|
||||||
|
("testParseULIDString", testParseULIDString),
|
||||||
|
("testParseULIDStringError", testParseULIDStringError),
|
||||||
|
("testULIDDataLength", testULIDDataLength),
|
||||||
|
("testULIDStringLength", testULIDStringLength),
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
public func __allTests() -> [XCTestCaseEntry] {
|
||||||
return [
|
return [
|
||||||
testCase(Base32Tests.allTests),
|
testCase(Base32Tests.__allTests__Base32Tests),
|
||||||
testCase(ULIDTests.allTests)
|
testCase(ULIDTests.__allTests__ULIDTests),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue