{"id":21307000,"url":"https://github.com/perlalien/test-alien-cpp","last_synced_at":"2026-02-18T11:36:45.240Z","repository":{"id":39580794,"uuid":"100499800","full_name":"PerlAlien/Test-Alien-CPP","owner":"PerlAlien","description":"Testing tools for Alien modules for projects that use C++","archived":false,"fork":false,"pushed_at":"2025-01-04T18:52:56.000Z","size":36,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T19:12:38.742Z","etag":null,"topics":["alien","perl","test","test2"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PerlAlien.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-08-16T14:43:28.000Z","updated_at":"2025-01-04T18:52:59.000Z","dependencies_parsed_at":"2025-01-04T19:36:05.160Z","dependency_job_id":null,"html_url":"https://github.com/PerlAlien/Test-Alien-CPP","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.027027027027026973","last_synced_commit":"9238f76c275292005f61a76e552f3b6051106b17"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/PerlAlien/Test-Alien-CPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerlAlien%2FTest-Alien-CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerlAlien%2FTest-Alien-CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerlAlien%2FTest-Alien-CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerlAlien%2FTest-Alien-CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PerlAlien","download_url":"https://codeload.github.com/PerlAlien/Test-Alien-CPP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PerlAlien%2FTest-Alien-CPP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011062,"owners_count":26084865,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alien","perl","test","test2"],"created_at":"2024-11-21T16:29:16.048Z","updated_at":"2025-10-12T10:46:02.206Z","avatar_url":"https://github.com/PerlAlien.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test::Alien::CPP ![linux](https://github.com/PerlAlien/Test-Alien-CPP/workflows/linux/badge.svg)\n\nTesting tools for Alien modules for projects that use C++\n\n# SYNOPSIS\n\n```perl\nuse Test2::V0;\nuse Test::Alien::CPP;\nuse Alien::libmycpplib;\n\nalien_ok 'ALien::libmycpplib';\nmy $xs = do { local $/; \u003cDATA\u003e };\nxs_ok $xs, with_subtest {\n  my($module) = @_;\n  ok $module-\u003eversion;\n};\n\ndone_testing;\n\n__DATA__\n\n#include \"EXTERN.h\"\n#include \"perl.h\"\n#include \"XSUB.h\"\n#include \u003cmycpplib.h\u003e\n\nMODULE = TA_MODULE PACKAGE = TA_MODULE\n\nconst char *\nversion(klass)\n    const char *klass\n  CODE:\n    RETVAL = MyCppLib-\u003eversion;\n  OUTPUT:\n    RETVAL\n```\n\n# DESCRIPTION\n\nThis module works exactly like [Test::Alien](https://metacpan.org/pod/Test::Alien) except that it supports C++.  All\nfunctions like `alien_ok`, etc that are exported by [Test::Alien](https://metacpan.org/pod/Test::Alien) are exported\nby this module.  The only difference is that `xs_ok` injects C++ support before\ndelegating to [Test::Alien](https://metacpan.org/pod/Test::Alien).\n\n# FUNCTIONS\n\n## xs\\_ok\n\n```\nxs_ok $xs;\nxs_ok $xs, $message;\n```\n\nCompiles, links the given `XS` / C++ code and attaches to Perl.\nSee [Test::Alien](https://metacpan.org/pod/Test::Alien) for further details on how this test works.\n\n# SEE ALSO\n\n- [Test::Alien](https://metacpan.org/pod/Test::Alien)\n- [Test::Alien::CanCompileCpp](https://metacpan.org/pod/Test::Alien::CanCompileCpp)\n\n# AUTHOR\n\nAuthor: Graham Ollis \u003cplicease@cpan.org\u003e\n\nContributors:\n\nRoy Storey (KIWIROY)\n\nDiab Jerius (DJERIUS)\n\n# COPYRIGHT AND LICENSE\n\nThis software is copyright (c) 2017-2024 by Graham Ollis.\n\nThis is free software; you can redistribute it and/or modify it under\nthe same terms as the Perl 5 programming language system itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlalien%2Ftest-alien-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperlalien%2Ftest-alien-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperlalien%2Ftest-alien-cpp/lists"}