Skip to content

Instantly share code, notes, and snippets.

@alanf
Created April 10, 2017 18:08
Show Gist options
  • Save alanf/74d4ed36610ef3cd59fe9fd1a56822f7 to your computer and use it in GitHub Desktop.
Save alanf/74d4ed36610ef3cd59fe9fd1a56822f7 to your computer and use it in GitHub Desktop.
class FakeRecorder: BreadcrumbRecordable {
var testRecords: [Data] = []
func saveRecord(_ data: Data!, streamName: String!) -> AWSTask<AnyObject>! {
testRecords.append(data)
return AWSTask()
}
func submitAllRecords() -> AWSTask<AnyObject>! {
return AWSTask()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment