Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some basic tests #4

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Add some basic tests #4

merged 1 commit into from
Sep 9, 2024

Conversation

davorg
Copy link
Contributor

@davorg davorg commented Sep 9, 2024

Fixes #3

Add basic tests for the App::LinkSite classes.

  • t/basic.t

    • Add a new test file with basic tests for the App::LinkSite class.
    • Test the creation of an App::LinkSite object.
    • Test the src and out methods of the App::LinkSite object.
  • t/link.t

    • Add a new test file with basic tests for the App::LinkSite::Link class.
    • Test the creation of an App::LinkSite::Link object.
    • Test the title, subtitle, link, and is_new methods of the App::LinkSite::Link object.
  • t/site.t

    • Add a new test file with basic tests for the App::LinkSite::Site class.
    • Test the creation of an App::LinkSite::Site object.
    • Test the name, handle, image, desc, og_image, and site_url methods of the App::LinkSite::Site object.
  • t/social.t

    • Add a new test file with basic tests for the App::LinkSite::Social class.
    • Test the creation of an App::LinkSite::Social object.
    • Test the service, handle, and url methods of the App::LinkSite::Social object.

For more details, open the Copilot Workspace session.

Fixes #3

Add basic tests for the `App::LinkSite` classes.

* **t/basic.t**
  - Add a new test file with basic tests for the `App::LinkSite` class.
  - Test the creation of an `App::LinkSite` object.
  - Test the `src` and `out` methods of the `App::LinkSite` object.

* **t/link.t**
  - Add a new test file with basic tests for the `App::LinkSite::Link` class.
  - Test the creation of an `App::LinkSite::Link` object.
  - Test the `title`, `subtitle`, `link`, and `is_new` methods of the `App::LinkSite::Link` object.

* **t/site.t**
  - Add a new test file with basic tests for the `App::LinkSite::Site` class.
  - Test the creation of an `App::LinkSite::Site` object.
  - Test the `name`, `handle`, `image`, `desc`, `og_image`, and `site_url` methods of the `App::LinkSite::Site` object.

* **t/social.t**
  - Add a new test file with basic tests for the `App::LinkSite::Social` class.
  - Test the creation of an `App::LinkSite::Social` object.
  - Test the `service`, `handle`, and `url` methods of the `App::LinkSite::Social` object.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/davorg-cpan/app-linksite/issues/3?shareId=XXXX-XXXX-XXXX-XXXX).
@davorg davorg merged commit dee6153 into main Sep 9, 2024
2 of 27 checks passed
@davorg davorg deleted the davorg/add-basic-tests branch November 6, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add some basic tests
1 participant