{"id":25650686,"url":"https://github.com/flow-build/test-core","last_synced_at":"2025-10-13T03:41:52.516Z","repository":{"id":59014207,"uuid":"533931413","full_name":"flow-build/test-core","owner":"flow-build","description":"Core library with testing functionalities for flowbuild","archived":false,"fork":false,"pushed_at":"2022-12-02T12:02:26.000Z","size":1458,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-05T10:41:53.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flow-build.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-07T20:30:04.000Z","updated_at":"2022-09-08T21:09:47.000Z","dependencies_parsed_at":"2023-01-22T14:00:44.627Z","dependency_job_id":null,"html_url":"https://github.com/flow-build/test-core","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/flow-build/test-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Ftest-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Ftest-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Ftest-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Ftest-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flow-build","download_url":"https://codeload.github.com/flow-build/test-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flow-build%2Ftest-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013518,"owners_count":26085368,"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-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2025-02-23T15:17:48.341Z","updated_at":"2025-10-13T03:41:52.502Z","avatar_url":"https://github.com/flow-build.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test-core\nCore library with testing functionalities for flowbuild\n\n![npm version](https://img.shields.io/npm/v/@flowbuild/test-core) ![language](https://img.shields.io/github/languages/top/flow-build/test-core) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=flow-build_test-core\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=flow-build_test-core) [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) \n\n## Installation\n```\nnpm install @flowbuild/test-core\n```\n\n## Usage (getAllPaths)\nYou can use this plugin to get the paths ignoring or not the present loops, as \nfollows. \n\n```js\n// ignoring loops - add 'true' as the second argument of function 'getAllPaths'\nconst { getAllPaths } = require('@flowbuild/test-core');\nconst allPaths = getAllPaths(blueprint, true);\n\n// counting paths with loops - just pass the first argument (false is the default \n// for the second argument)\nconst { getAllPaths } = require('@flowbuild/test-core');\nconst allPaths = getAllPaths(blueprint);\n\n/*\nnote that 'blueprint' must be a valid blueprint inside flowbuild's pattern, i.e, \nmust have the valid properties 'name', 'description' and 'blueprint_spec' in it.\n*/\n```\n\n## Usage (getLoops)\nYou can use this plugin to get all loops present in a blueprint.\n\n```js\nconst { getLoops } = require('@flowbuild/test-core');\nconst allLoops = getLoops(blueprint);\n\n/*\nnote that 'blueprint' must be a valid blueprint inside flowbuild's pattern, i.e, \nmust have the valid properties 'name', 'description' and 'blueprint_spec' in it.\n*/\n```\n\n## Tested Blueprints Patterns (Diagrams Images)\n\n### Number of paths: 1 | Number of loops: 0\n\u003cimg src='./public/images/verySimpleBP.png' alt='Very Simple BP'/\u003e\n\n### Number of paths: 2 | Number of loops: 0\n\u003cimg src='./public/images/simpleBP.png' alt='Simple BP'/\u003e\n\n### Number of paths: 4 | Number of loops: 0\n\u003cimg src='./public/images/mediumBP.png' alt='Medium BP'/\u003e\n\n### Number of paths: 8 (Counting loop); 4 (Ignoring loop) | Number of loops: 1\n\u003cimg src='./public/images/loopSimpleBP.png' alt='Loop Simple BP'/\u003e\n\n### Number of paths: 8 (Counting loop); 6 (Ignoring loop) | Number of loops: 1\n\u003cimg src='./public/images/loopMediumBP.png' alt='Loop Medium BP'/\u003e\n\n### Number of paths: 9 (Counting loop); 5 (Ignoring loop) | Number of loops: 1\n\u003cimg src='./public/images/averageBP.png' alt='Average BP'/\u003e\n\n### Number of paths: 60 (Counting loop); 5 (Ignoring loop) | Number of loops: 11\n\u003cimg src='./public/images/loopMultipleBP.png' alt='Loop Multiple BP'/\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow-build%2Ftest-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflow-build%2Ftest-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflow-build%2Ftest-core/lists"}