{"id":37161858,"url":"https://github.com/sourcegraph/lsif-test","last_synced_at":"2026-01-14T19:16:02.320Z","repository":{"id":54195441,"uuid":"212611271","full_name":"sourcegraph/lsif-test","owner":"sourcegraph","description":"Language Server Index Format Test Utilities","archived":true,"fork":false,"pushed_at":"2021-03-03T21:18:26.000Z","size":141,"stargazers_count":10,"open_issues_count":3,"forks_count":2,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-10-20T07:42:53.786Z","etag":null,"topics":["graphviz-dot","lsif","validate","visualize"],"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/sourcegraph.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}},"created_at":"2019-10-03T15:16:40.000Z","updated_at":"2023-01-28T09:52:06.000Z","dependencies_parsed_at":"2022-08-13T08:51:05.742Z","dependency_job_id":null,"html_url":"https://github.com/sourcegraph/lsif-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sourcegraph/lsif-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcegraph","download_url":"https://codeload.github.com/sourcegraph/lsif-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcegraph%2Flsif-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432039,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["graphviz-dot","lsif","validate","visualize"],"created_at":"2026-01-14T19:16:01.586Z","updated_at":"2026-01-14T19:16:02.313Z","avatar_url":"https://github.com/sourcegraph.png","language":"Go","readme":"# ⚠️ This project  has been merged into [github.com/sourcegraph/sourcegraph](https://github.com/sourcegraph/sourcegraph) ⚠️\n\n# LSIF development and testing utilities\n\n## Install\n\nAssumes a working Go installation:\n\n```\n# lsif-validate\ngo get github.com/sourcegraph/lsif-test/cmd/lsif-validate\n\n# lsif-visualize\ngo get github.com/sourcegraph/lsif-test/cmd/lsif-visualize\n```\n\nResulting binary should then be in your `$GOPATH/bin` (conventionally `$HOME/go/bin`), so make sure thats in your `$PATH` or else invoke using absolute/relative location.\n\nBinary releases coming soon™️\n\n## lsif-validate\n\nThis command validates the output of an LSIF indexer. The following properties are validated:\n\n- Element IDs are unique\n- All references of element occur after its definition\n- A single metadata vertex exists and is the firsts element in the dump\n- The project root is a valid URL\n- Each document URI is a URL relative to the project root\n- Each range vertex has sane bounds (non-negative line/character values and the ending position occurs strictly after the starting position)\n- 1-to-n edges have a non-empty `inVs` array\n- Edges refer to identifiers attached to the correct element type, as follows:\n\n    | label                     | inV(s)                     | outV                | condition |\n    | ------------------------- | -------------------------- | ------------------- | --------- |\n    | `contains`                | `range`                    |                     | if outV is a `document` |\n    | `item`                    | `range`                    |                     | |\n    | `item`                    | `referenceResult`          |                     | if outV is a `referenceResult` |\n    | `next`                    | `resultSet`                | `range`/`resultSet` | |\n    | `textDocument/definition` | `definitionResult`         | `range`/`resultSet` | |\n    | `textDocument/references` | `referenceResult`          | `range`/`resultSet` | |\n    | `textDocument/hover`      | `hoverResult`              | `range`/`resultSet` | |\n    | `moniker`                 | `moniker`                  | `range`/`resultSet` | |\n    | `nextMoniker`             | `moniker`                  | `moniker`           | |\n    | `packageInformation`      | `packageInformation`       | `moniker`           | |\n\n- Each vertex is reachable from a range or document vertex (*ignored: metadata, project, document, and event vertices*)\n- Each range belongs to a unique document\n- No two ranges belonging to the same document improperly overlap\n- The inVs of each `item` edge belong to that document referred to by the edge's `document` field\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Flsif-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcegraph%2Flsif-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcegraph%2Flsif-test/lists"}