Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uber/mockolo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.1
Choose a base ref
...
head repository: uber/mockolo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.2.0
Choose a head ref
  • 13 commits
  • 76 files changed
  • 6 contributors

Commits on May 2, 2024

  1. Compilation fix for a mock where the return type of a closure is an o…

    …paque type (#259)
    
    * fix and tests added
    
    * fix for the case when the text some exists in the returning type
    omarzl authored May 2, 2024
    Configuration menu
    Copy the full SHA
    dff67bf View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Use SwiftSyntax 6 (#264)

    sidepelican authored Oct 22, 2024
    Configuration menu
    Copy the full SHA
    68db289 View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Speed up aarch64 builds using Static Linux SDK (#265)

    * Build release binary with swift-sdk
    
    * Fix install swift method in macOS
    
    * fix incorrect destination name
    
    * drop macos-12 because it will be removed
    
    * Add macos only artifact
    
    * Fix incorrect artifact name
    
    * sort swift setup order
    sidepelican authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    f7ff730 View commit details
    Browse the repository at this point in the history
  2. Add support for Actor protocol. (#266)

    * Rename confusing `Type` type to `SwiftType`
    
    * Rename ClassModel to NominalModel and update ModelType
    
    * Actor mock support
    
    * Add description comment to confusing class.
    
    * Stop to using confusing SwiftType usage
    sidepelican authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    0ab3723 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. Add async and throwing property support (#267)

    * Read accessor and omit setCallCount if protocol has no setter
    
    * Remove unnecessary static var handling
    
    * Support get async and get throws property accessor
    
    * small rename and remove unused code
    
    * generate initialize for computed var
    
    * computed getter handles with the same way of method
    
    * remove deprecated method
    
    * Add test for throwing never
    
    * small formatting
    
    * Update Sources/MockoloFramework/Parsers/SwiftSyntaxExtensions.swift
    
    Co-authored-by: Fumiya Tanaka <fumiya989@gmail.com>
    
    * split syntax representation
    
    ---------
    
    Co-authored-by: Fumiya Tanaka <fumiya989@gmail.com>
    sidepelican and fummicc1 authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    8f458e2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2628c64 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Correct the throws clause in the closure within template logic to s…

    …upport TypedThrow. (#262)
    
    * Update swift-syntax to 600.0.0-prerelease
    
    * Resolve warnings for SwiftSyntax600
    
    * Update for tests
    
    * update to support typed-throw
    
    * Update Sources/MockoloFramework/Parsers/SwiftSyntaxExtensions.swift
    
    Co-authored-by: Iceman <side.junktown@gmail.com>
    
    * Read accessor and omit setCallCount if protocol has no setter
    
    * Remove unnecessary static var handling
    
    * Support get async and get throws property accessor
    
    * small rename and remove unused code
    
    * generate initialize for computed var
    
    * computed getter handles with the same way of method
    
    * remove deprecated method
    
    * Add test for throwing never
    
    * small formatting
    
    * Define FunctionSuffixClause.
    
    * Change swift-syntax organization from apple to swiftlang
    
    * Define FunctionSuffixClause
    
    * Update TestCase
    
    * refactoring
    
    * fix: remove unused string token.
    
    * Fix for typed throws
    
    * rename argument for applyThrowingTemplate method. Add doc comment
    
    * Avoid to expose special parameter in a common method.
    
    * Update TestFixture
    
    * Keep applyThrowingTemplate nullable to consider trivia.
    review comment: #262 (comment)
    
    * Refactor template logic for closure's suffix.
    
    * Refactor function's suffix logic.
    
    ---------
    
    Co-authored-by: Iceman <side.junktown@gmail.com>
    Co-authored-by: Iceman <okamura@qoncept.co.jp>
    3 people authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    09a1ea2 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. Add Nested protocol support (#270)

    * Scan nested protocol and add test
    
    * remove unused `data` property
    
    * Avoid mock generation in generic context
    
    * Render mocks in extension when the mock has namespaces
    
    * A bit performance improve
    sidepelican authored Oct 30, 2024
    Configuration menu
    Copy the full SHA
    39e406f View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Fix to avoid using global actors as default values (#269)

    * Fix `any` annotated protocol cannot find default value
    
    * Skip to add typeMap when the type may have globalActor
    
    * A small renaming
    sidepelican authored Oct 31, 2024
    Configuration menu
    Copy the full SHA
    56d8697 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Remove dead codes (#271)

    * remove unused properties
    
    * remove unnecessary setter requirements
    
    * remove excessive isInitializer requirement
    
    * remove unused requirements
    
    # Conflicts:
    #	Sources/MockoloFramework/Models/Model.swift
    
    * Use Algorithms and remove unused parameter
    
    # Conflicts:
    #	Sources/MockoloFramework/Operations/UniqueModelGenerator.swift
    #	Sources/MockoloFramework/Utils/InheritanceResolver.swift
    
    * remove name init param from ClosureModel
    
    # Conflicts:
    #	Sources/MockoloFramework/Models/ClosureModel.swift
    #	Sources/MockoloFramework/Models/MethodModel.swift
    #	Sources/MockoloFramework/Templates/VariableTemplate.swift
    
    * remove unused properties
    
    * remove redundant conformance
    
    * early return and others
    
    * remove none modifier
    
    * Remove extra space
    
    # Conflicts:
    #	Sources/MockoloFramework/Templates/MethodTemplate.swift
    
    * cleanup model properties
    
    # Conflicts:
    #	Sources/MockoloFramework/Models/IfMacroModel.swift
    #	Sources/MockoloFramework/Models/MethodModel.swift
    #	Sources/MockoloFramework/Models/Model.swift
    #	Sources/MockoloFramework/Models/VariableModel.swift
    #	Sources/MockoloFramework/Parsers/SwiftSyntaxExtensions.swift
    
    * remove type requirement
    
    * Update Sources/MockoloFramework/Operations/UniqueModelGenerator.swift
    
    Co-authored-by: uhooi <the_uhooi@yahoo.co.jp>
    
    ---------
    
    Co-authored-by: uhooi <the_uhooi@yahoo.co.jp>
    sidepelican and uhooi authored Nov 6, 2024
    Configuration menu
    Copy the full SHA
    7b168b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2024

  1. Organize the arguments of Model.render. (#272)

    * Cleanup render function arguments
    
    * Use Algorithms
    
    * Remove unnecessary default value
    
    * Add test case about known issue
    
    * Fix consistency when context state is not correct
    
    * remove unnecessary init argument
    
    * Use NominalTypeDeclKind instead of FindTargetDeclType in most places
    
    * Use XCTExpectFailure in macOS
    
    * Avoid force unwrapping and keep consistency
    
    * Update Sources/MockoloFramework/Models/TypeAliasModel.swift
    
    Co-authored-by: Fumiya Tanaka <fumiya989@gmail.com>
    
    ---------
    
    Co-authored-by: Fumiya Tanaka <fumiya989@gmail.com>
    sidepelican and fummicc1 authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    2e87c0c View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Remove redundant tuple in handler type (#275)

    * Remove redundant tuple in handler type
    
    * Use predefined utility
    
    * fix for existential any
    sidepelican authored Nov 21, 2024
    Configuration menu
    Copy the full SHA
    b345372 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Configuration menu
    Copy the full SHA
    588267d View commit details
    Browse the repository at this point in the history
Loading