{"id":32018079,"url":"https://github.com/architectv/tdd-kata","last_synced_at":"2026-07-19T05:33:28.448Z","repository":{"id":119213376,"uuid":"375767478","full_name":"architectv/tdd-kata","owner":"architectv","description":"🥷 TDD Kata in Golang","archived":false,"fork":false,"pushed_at":"2021-06-11T17:21:14.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-07-19T05:32:56.149Z","etag":null,"topics":["go","golang","tdd","tdd-kata"],"latest_commit_sha":null,"homepage":"","language":"Go","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/architectv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-06-10T16:46:05.000Z","updated_at":"2021-06-11T17:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2169de68-6ba3-43c5-b9cf-c1690fca3c11","html_url":"https://github.com/architectv/tdd-kata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/architectv/tdd-kata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architectv%2Ftdd-kata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architectv%2Ftdd-kata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architectv%2Ftdd-kata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architectv%2Ftdd-kata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/architectv","download_url":"https://codeload.github.com/architectv/tdd-kata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/architectv%2Ftdd-kata/sbom","scorecard":{"id":205589,"data":{"date":"2025-08-11","repo":{"name":"github.com/architectv/tdd-kata","commit":"95d7aae8e52cf182cefa16d0d9a0bbc4ff2cdb8a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/architectv/tdd-kata/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/architectv/tdd-kata/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/architectv/tdd-kata/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/architectv/tdd-kata/test.yml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/test.yml:26","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T23:39:18.513Z","repository_id":119213376,"created_at":"2025-08-16T23:39:18.513Z","updated_at":"2025-08-16T23:39:18.513Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35642986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-19T02:00:06.923Z","response_time":112,"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":["go","golang","tdd","tdd-kata"],"created_at":"2025-10-16T01:17:55.173Z","updated_at":"2026-07-19T05:33:28.431Z","avatar_url":"https://github.com/architectv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TDD-kata\n\n[![test](https://github.com/architectv/tdd-kata/actions/workflows/test.yml/badge.svg)](https://github.com/architectv/tdd-kata/actions/workflows/test.yml)\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/architectv/tdd-kata)\n![Lines of code](https://img.shields.io/tokei/lines/github/architectv/tdd-kata)\n![Github Repository Size](https://img.shields.io/github/repo-size/architectv/tdd-kata)\n![License](https://img.shields.io/badge/license-MIT-green)\n![GitHub last commit](https://img.shields.io/github/last-commit/architectv/tdd-kata)\n\nDeveloped by Roy Osherove - https://osherove.com/tdd-kata-1\n\n## String Calculator\n\n### 1. Create a simple String calculator with a method signature:\n   \n———————————————\n\nint Add(string numbers)\n\n———————————————\n\nThe method can take up to two numbers, separated by commas, and will return their sum.\nfor example “” or “1” or “1,2” as inputs.\n(for an empty string it will return 0)\n   \nHints:\n   \n——————\n- Start with the simplest test case of an empty string and move to one and two numbers\n- Remember to solve things as simply as possible so that you force yourself to write tests you did not think about\n- Remember to refactor after each passing test\n\n————————————————————————————————\n\n### 2. Allow the Add method to handle an unknown amount of numbers\n\n————————————————————————————————\n\n### 3. Allow the Add method to handle new lines between numbers (instead of commas).\n\n* the following input is ok: “1\\n2,3” (will equal 6)\n* the following input is NOT ok: “1,\\n” (not need to prove it - just clarifying)\n\n————————————————————————————————\n\n### 4. Support different delimiters\n\n* to change a delimiter, the beginning of the string will contain a separate line that looks like this: “//[delimiter]\\n[numbers…]” for example “//;\\n1;2” should return three where the default delimiter is ‘;’ .\n* the first line is optional. all existing scenarios should still be supported\n\n————————————————————————————————\n\n### 5. Calling Add with a negative number will throw an exception “negatives not allowed” - and the negative that was passed.\nif there are multiple negatives, show all of them in the exception message.\n   \n————————————————————————————————\n\nSTOP HERE if you are a beginner. Continue if you can finish the steps so far in less than 30 minutes.\n\n————————————————————————————————\n\n### 6. Numbers bigger than 1000 should be ignored, so adding 2 + 1001 = 2\n\n————————————————————————————————\n\n### 7. Delimiters can be of any length with the following format: “//[delimiter]\\n” for example: “//[***]\\n1***2***3” should return 6\n\n————————————————————————————————\n\n### 8. Allow multiple delimiters like this: “//[delim1][delim2]\\n” for example “//[*][%]\\n1*2%3” should return 6.\n\n————————————————————————————————\n\n### 9. Make sure you can also handle multiple delimiters with length longer than one char.\n\n———————————————————————————————— ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitectv%2Ftdd-kata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchitectv%2Ftdd-kata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchitectv%2Ftdd-kata/lists"}