{"id":19859427,"url":"https://github.com/siguici/vut","last_synced_at":"2026-03-04T12:32:30.577Z","repository":{"id":214249928,"uuid":"736028409","full_name":"siguici/vut","owner":"siguici","description":"A minimalistic framework for validating rules and conducting unit tests in @Vlang. Simplify code validation and ensure component correctness effortlessly.","archived":false,"fork":false,"pushed_at":"2025-10-22T04:01:03.000Z","size":35,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T04:26:14.355Z","etag":null,"topics":["assert","assertions","ensure","expect","expectations","filters","sanitization","sanitizers","schema","test-suite","test-suites","testing","testing-framework","unit-testing","validation","validators","vlang","vlang-package"],"latest_commit_sha":null,"homepage":"https://vpm.vlang.io/packages/siguici.vut","language":"V","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/siguici.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-26T19:23:31.000Z","updated_at":"2025-10-22T04:01:06.000Z","dependencies_parsed_at":"2023-12-26T23:18:51.286Z","dependency_job_id":"8240d772-fd52-428a-9087-82127a41761f","html_url":"https://github.com/siguici/vut","commit_stats":null,"previous_names":["siguici/vest","siguici/vut"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/siguici/vut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siguici%2Fvut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siguici%2Fvut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siguici%2Fvut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siguici%2Fvut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/siguici","download_url":"https://codeload.github.com/siguici/vut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/siguici%2Fvut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30079745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T12:28:08.313Z","status":"ssl_error","status_checked_at":"2026-03-04T12:27:28.210Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["assert","assertions","ensure","expect","expectations","filters","sanitization","sanitizers","schema","test-suite","test-suites","testing","testing-framework","unit-testing","validation","validators","vlang","vlang-package"],"created_at":"2024-11-12T14:27:09.102Z","updated_at":"2026-03-04T12:32:30.557Z","avatar_url":"https://github.com/siguici.png","language":"V","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validation and Unit Testing Framework for Vlang\n\nVUT is a minimalistic framework for validating rules and conducting unit tests in Vlang.\nSimplify code validation and ensure component correctness effortlessly.\n\n## Installation\n\n- Install VUT using VPM (recommanded):\n\n```shell\nv install siguici.vut\n```\n\n- Install VUT using Git:\n\n```shell\nmkdir ${V_MODULES:-$HOME/.vmodules}/siguici\ngit  clone --depth=1 https://github.com/siguici/vut ${V_MODULES:-$HOME/.vmodules}/siguici/vut\n```\n\n- Use VUT as a project dependency:\n\n```v\nModule {\n    //...\n\tdependencies: [\n        'siguici.vut'\n        //...\n    ]\n}\n\n```\n\n## Usage\n\n### Filtering\n\n```v\nimport vut { filter }\n\nassert filter(true).is_bool()\nassert filter(true).is_true()\nassert filter(2).is_any_int()\nassert filter(5.4).is_any_float()\nassert filter(8).is_num() // any_int or any_float\n```\n\n### Assurance\n\n```v\nimport vut { ensure }\n\nt := true\n\nensure(t).is_bool().is_true()\n```\n\n### Expectation\n\n```v\nimport vut { expect }\n\nt := true\n\nexpect(t).to_be_bool().to_be_true()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiguici%2Fvut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsiguici%2Fvut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsiguici%2Fvut/lists"}