Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ let specsToGenerate: [CopiableSpec] = matchingTypes.map { type in
}

return CopiableSpec(
name: type.name,
name: type.globalName,
accessLevelWithSpacePostfix: type.accessLevel == "internal" ? "" : "\(type.accessLevel) ",
properties: propSpecs
)
Expand Down
2 changes: 1 addition & 1 deletion CodeGeneration/Sourcery/Fakes/Fakes.swifttemplate
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let specsToGenerate: [FakeableSpec] = matchingTypes.map { type in
)
}

return FakeableSpec(name: type.name, accessLevelWithSpacePostfix: accessLevel, content: .initializer(propSpecs))
return FakeableSpec(name: type.globalName, accessLevelWithSpacePostfix: accessLevel, content: .initializer(propSpecs))
}
-%>
<%#
Expand Down
16 changes: 8 additions & 8 deletions Fakes/Fakes/Hardware.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ extension CardBrand {
.visa
}
}
extension CardPresentReceiptParameters {
extension Hardware.CardPresentReceiptParameters {
/// Returns a "ready to use" type filled with fake values.
///
public static func fake() -> CardPresentReceiptParameters {
public static func fake() -> Hardware.CardPresentReceiptParameters {
.init(
amount: .fake(),
formattedAmount: .fake(),
Expand All @@ -27,10 +27,10 @@ extension CardPresentReceiptParameters {
)
}
}
extension CardPresentTransactionDetails {
extension Hardware.CardPresentTransactionDetails {
/// Returns a "ready to use" type filled with fake values.
///
public static func fake() -> CardPresentTransactionDetails {
public static func fake() -> Hardware.CardPresentTransactionDetails {
.init(
last4: .fake(),
expMonth: .fake(),
Expand All @@ -44,10 +44,10 @@ extension CardPresentTransactionDetails {
)
}
}
extension Charge {
extension Hardware.Charge {
/// Returns a "ready to use" type filled with fake values.
///
public static func fake() -> Charge {
public static func fake() -> Hardware.Charge {
.init(
id: .fake(),
amount: .fake(),
Expand All @@ -66,10 +66,10 @@ extension ChargeStatus {
.succeeded
}
}
extension PaymentIntent {
extension Hardware.PaymentIntent {
/// Returns a "ready to use" type filled with fake values.
///
public static func fake() -> PaymentIntent {
public static func fake() -> Hardware.PaymentIntent {
.init(
id: .fake(),
status: .fake(),
Expand Down
Loading