~/talk

Mockolo: Efficient Mock Generator for Swift

Talkat UIKonf 2019 · 2019-05-26..05-29· [ios, developer-experience]
links:none on file
slides:none on file

Builds a fast Swift mock generator that parses with SourceKitten, limits concurrency with a dispatch semaphore to core count, and uses simple string interpolation templates instead of Stencil. Targets a 2M-line codebase with ~11,000 protocols, needing ~9,000 mocks (~0.5M generated lines); existing tools took ~1 hour, the new tool runs ~5s multi‑threaded (about +12s single‑threaded). Resolves inheritance by precomputing dependency outputs, generates models lazily, supplies default return values, and integrates into the build system.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45What is Mockolo
  3. 13:03Resolving Inheritance
  4. 16:52Rendering
  5. 20:42Profiling
  6. 23:18Recap
  7. 25:13Issue with SourceKit
  8. 27:02Benchmarking
  9. 30:20Apples priorities
  10. 31:37Compile time
  11. 32:52Swift syntax
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.