Skip to content

Test Coverage Does Not Include Invalid Field Name Scenario #2

Description

The test class does not include a test case for when an invalid fieldApiName is provided. This scenario should be tested to ensure the method handles it gracefully (e.g., returns null or an error).

Suggested Fix

  • Add a test case where fieldApiName is set to a non-existent field (e.g., 'NonExistentField').
  • Assert that the response is null or as expected.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions