Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
decanus committed Jun 22, 2019
1 parent 1f95768 commit 9b4a661
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 13 deletions.
119 changes: 108 additions & 11 deletions Tests/BeaconChainTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -1,17 +1,114 @@
#if !canImport(ObjectiveC)
import XCTest

#if !os(macOS)
public func allTests() -> [XCTestCaseEntry] {
extension ArrayAttestationTargetTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ArrayAttestationTargetTests = [
("testVotes", testVotes),
]
}

extension ArrayTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ArrayTests = [
("testSplit", testSplit),
]
}

extension ArrayValidatorIndexTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ArrayValidatorIndexTests = [
("testTotalBalance", testTotalBalance),
]
}

extension ArrayValidatorTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ArrayValidatorTests = [
("testActiveIndices", testActiveIndices),
]
}

extension BeaconChainTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__BeaconChainTests = [
("testIntegerSquareRoot", testIntegerSquareRoot),
("testIsDoubleVote", testIsDoubleVote),
]
}

extension EpochTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__EpochTests = [
("testEntryExitEpoch", testEntryExitEpoch),
("testStartSlot", testStartSlot),
]
}

extension ForkTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ForkTests = [
("testDomain", testDomain),
("testVersion", testVersion),
]
}

extension IntTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__IntTests = [
("testIsPowerOfTwo", testIsPowerOfTwo),
]
}

extension SlotTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__SlotTests = [
("testToEpoch", testToEpoch),
]
}

extension ValidatorTests {
// DO NOT MODIFY: This is autogenerated, use:
// `swift test --generate-linuxmain`
// to regenerate.
static let __allTests__ValidatorTests = [
("testActivate", testActivate),
("testExitValidator", testExitValidator),
("testIsActive", testIsActive),
("testPrepareForWithdrawal", testPrepareForWithdrawal),
]
}

public func __allTests() -> [XCTestCaseEntry] {
return [
testCase(BeaconChainTests.allTests),
testCase(ArrayTests.allTests),
testCase(ArrayValidatorIndexTests.allTests),
testCase(ArrayValidatorTests.allTests),
testCase(SlotTests.allTests),
testCase(EpochTests.allTests),
testCase(ValidatorTests.allTests),
testCase(ForkTests.allTests),
// testCase(StateTransitionTests.allTests)
testCase(ArrayAttestationTargetTests.__allTests__ArrayAttestationTargetTests),
testCase(ArrayTests.__allTests__ArrayTests),
testCase(ArrayValidatorIndexTests.__allTests__ArrayValidatorIndexTests),
testCase(ArrayValidatorTests.__allTests__ArrayValidatorTests),
testCase(BeaconChainTests.__allTests__BeaconChainTests),
testCase(EpochTests.__allTests__EpochTests),
testCase(ForkTests.__allTests__ForkTests),
testCase(IntTests.__allTests__IntTests),
testCase(SlotTests.__allTests__SlotTests),
testCase(ValidatorTests.__allTests__ValidatorTests),
]
}
#endif
5 changes: 3 additions & 2 deletions Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import XCTest

import BeaconChainTests

var tests = [XCTest.XCTestCaseEntry]()
tests += BeaconChainTests.allTests()
var tests = [XCTestCaseEntry]()
tests += BeaconChainTests.__allTests()

XCTMain(tests)

0 comments on commit 9b4a661

Please sign in to comment.