Skip to content

[Tests] Add test Coverage for Symbol class #957

Closed

Description

@JckXia
class methods
Covered #972 static Symbol New(napi_env env, const std::string& description)
Covered #972 static Symbol New(napi_env env, napi_value description)
Covered #972 Symbol()
Covered #972 Symbol(napi_env env, napi_value description)
Covered #972 Symbol(napi_env env, Napi::String description)
Covered #972 Symbol(napi_env env, const std::string& description)
Covered #972 Symbol(napi_env env , const char* description)
Covered #972 Symbol::Wellknown(napi_env env, const std::string& name)

Activity

  1. changed the title [-][Tests] Add tests for Symbol class[/-] [+][Tests] Add test Coverage for Symbol class[/+] on Mar 31, 2021
  2. JckXia commented on Mar 31, 2021

    @JckXia
    MemberAuthor

    Will work on adding these tests soon.

  3. KevinEady commented on Mar 31, 2021

    @KevinEady
    Contributor

    I would add Symbol::WellKnown as well. There seems to be some discrepancy: #919

  4. JckXia commented on Apr 15, 2021

    @JckXia
    MemberAuthor

    @KevinEady Hey Kevin. For the Symbol::Wellknown function, should it return a symbol that we have registered via Symbol.for? In that if I call Symbol.for("testSymbol") on js side, I should receive the same symbol back with a call to Symbol::Wellknown("testSymbol") from Cpp? (Right now it will return undefined as stated in #919)

  5. ThomasWeinert commented on Apr 16, 2021

    @ThomasWeinert

    I would suggest adding a separate Symbol::For(napi_env env, const std::string& name) for fetching global symbols.

  6. github-actions commented on Jul 16, 2021

    @github-actions
    Contributor

    This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.

  7. NickNaso commented on Jul 16, 2021

    @NickNaso
    Member

    Hi @JckXia ,
    the PR #972 has been landed. Could you provide to update the matrix of methods that needs to be tested? In case you already covered all the ceses please provide to close the issue.

  8. JckXia commented on Jul 16, 2021

    @JckXia
    MemberAuthor

    @NickNaso Thank you for the reminder! I marked the test cases as covered and the issue is ready to be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions