Skip to content

schema를 받아서 getter object로 만드는 로직 개선 #28

@airman5573

Description

@airman5573

schemaToGetterObj 에서

isFunction 인지 체크하고 ture면 getter로 지정했습니다.

그런데 mock함수는 바로 실행해서 값을 가지고 있으면 되기 때문에, 구태여 getter로 지정할 필요가 없습니다.

그래서 mock함수와 사용자의 커스텀 함수를 구분하고, mock함수라면 실행 -> 값 저장 하는 방식으로 퍼포먼스를 개선할 수 있습니다.

마치 일반 값을 넣는 이 로직처럼 말이죠.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions