This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adapted from https://www.avanderlee.com/swift/memory-leaks-unit-tests/ | |
// --------------> Usage <------------------- | |
XCTAssertDeallocation(of: { | |
MyViewController(...) | |
}) | |
// With some setup: | |
XCTAssertDeallocation(of: { () -> MyViewController in | |
let myViewController = MyViewController(...) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Just playing with this pointfreeco sample | |
// https://github.com/pointfreeco/episode-code-samples/blob/main/0114-designing-dependencies-pt5/DesigningDependencies/WeatherClient/Sources/WeatherClient/Mocks.swift | |
extension WeatherClient { | |
static func faked( | |
response: Result<[WeatherResponse.ConsolidatedWeather], Error>, | |
locations: Result<[Location], Error>) -> WeatherClient { | |
return Self( | |
weather: { _ in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wikiquotes | |
print("Hola Santi") | |
edad_santi = 30 | |
edad_fran = 30 | |
edad_santi_texto = "30" | |
edadSanti = 30 | |
asdsadjasjdj = 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import the iOS-specific Fastlane configuration | |
import("../ios/fastlane/ios_fastfile") | |
# Shared lanes for version management and release notes generation | |
lane :get_version_from_tag do |options| | |
# Ensure required environment variables are present | |
ensure_env_vars( | |
env_vars: ['GIT_TAG'] | |
) | |
OlderNewer