Skip to content
Snippets Groups Projects
Commit 44e39cbc authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add Group object wrapper

parent b4ccf0c2
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!24Update Bindings
import Bindings
import XCTestDynamicOverlay
public struct GroupGetCreatedMS {
public var run: () -> Int64
public func callAsFunction() -> Int64 {
run()
}
}
extension GroupGetCreatedMS {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetCreatedMS {
GroupGetCreatedMS(run: bindingsGroup.getCreatedMS)
}
}
extension GroupGetCreatedMS {
public static let unimplemented = GroupGetCreatedMS(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetCreatedNano {
public var run: () -> Int64
public func callAsFunction() -> Int64 {
run()
}
}
extension GroupGetCreatedNano {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetCreatedNano {
GroupGetCreatedNano(run: bindingsGroup.getCreatedNano)
}
}
extension GroupGetCreatedNano {
public static let unimplemented = GroupGetCreatedNano(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetId {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GroupGetId {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetId {
GroupGetId {
guard let data = bindingsGroup.getID() else {
fatalError("BindingsGroup.getID returned `nil`")
}
return data
}
}
}
extension GroupGetId {
public static let unimplemented = GroupGetId(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetInitMessage {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GroupGetInitMessage {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetInitMessage {
GroupGetInitMessage {
guard let data = bindingsGroup.getInitMessage() else {
fatalError("BindingsGroup.getInitMessage returned `nil`")
}
return data
}
}
}
extension GroupGetInitMessage {
public static let unimplemented = GroupGetInitMessage(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetMembership {
public var run: () throws -> Data
public func callAsFunction() throws -> Data {
try run()
}
}
extension GroupGetMembership {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetMembership {
GroupGetMembership {
try bindingsGroup.getMembership()
}
}
}
extension GroupGetMembership {
public static let unimplemented = GroupGetMembership(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetName {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GroupGetName {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetName {
GroupGetName {
guard let data = bindingsGroup.getName() else {
fatalError("BindingsGroup.getName returned `nil`")
}
return data
}
}
}
extension GroupGetName {
public static let unimplemented = GroupGetName(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupGetTrackedId {
public var run: () -> Int
public func callAsFunction() -> Int {
run()
}
}
extension GroupGetTrackedId {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupGetTrackedId {
GroupGetTrackedId(run: bindingsGroup.getTrackedID)
}
}
extension GroupGetTrackedId {
public static let unimplemented = GroupGetTrackedId(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct GroupSerialize {
public var run: () -> Data
public func callAsFunction() -> Data {
run()
}
}
extension GroupSerialize {
public static func live(_ bindingsGroup: BindingsGroup) -> GroupSerialize {
GroupSerialize {
guard let data = bindingsGroup.serialize() else {
fatalError("BindingsGroup.serialize returned `nil`")
}
return data
}
}
}
extension GroupSerialize {
public static let unimplemented = GroupSerialize(
run: XCTUnimplemented("\(Self.self)")
)
}
import Bindings
import XCTestDynamicOverlay
public struct Group {
public var getCreatedMS: GroupGetCreatedMS
public var getCreatedNano: GroupGetCreatedNano
public var getId: GroupGetId
public var getInitMessage: GroupGetInitMessage
public var getMembership: GroupGetMembership
public var getName: GroupGetName
public var getTrackedID: GroupGetTrackedId
public var serialize: GroupSerialize
}
extension Group {
public static func live(_ bindingsGroup: BindingsGroup) -> Group {
Group(
getCreatedMS: .live(bindingsGroup),
getCreatedNano: .live(bindingsGroup),
getId: .live(bindingsGroup),
getInitMessage: .live(bindingsGroup),
getMembership: .live(bindingsGroup),
getName: .live(bindingsGroup),
getTrackedID: .live(bindingsGroup),
serialize: .live(bindingsGroup)
)
}
}
extension Group {
public static let unimplemented = Group(
getCreatedMS: .unimplemented,
getCreatedNano: .unimplemented,
getId: .unimplemented,
getInitMessage: .unimplemented,
getMembership: .unimplemented,
getName: .unimplemented,
getTrackedID: .unimplemented,
serialize: .unimplemented
)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment