copy_with_context 3.1.1-1
Legitimate Neovim plugin
“A Neovim plugin for copying code with context”
Basename is uppercase README.mdGitHub Actions workflow definition path
SHA-256933548282e4dd5bb9eab3dd9d86f0762d0fcbfa599465244ef7c0b515e4de61f
Evidence
4:21… _with_context.providers.gitlab"] = nil
5
6local gitlab = require("copy_with_context.providers.gitlab")
7
8describe("GitLab provider", function()
9 describe("matches", function()
10 it("matches gitlab.com", function()
11 assert.is_true(gitlab.matches("gitlab.com"))
12 end)
13
14 …
23:17… ser",
24 repo = "repo",
25 commit = "abc123def456",
26 file_path = "lua/file.lua",
27 }
28
29 it("builds URL for single line", function()
30 local url = gitlab.build_url(git_info, 42, 42)
31 assert.equals("https://gitlab.com/user/repo/-/blob/abc123def456/lua/file.lua#L42", url)
32 end)
33
34 it("builds URL for multiple lines", function()
35 local url = gitlab.build_url(git_info, 10, 20)
36 assert.equals("https://gitlab.com/user/repo/-/blob/abc123def456/lua/file.lua#L10-20", url)
37 end)
38
39 it("builds URL for self-hosted GitLab", function()
40 local selfhosted_info = {
41 provider = "git …
44 commit = "xyz789",
45 file_path = "src/main.py",
46 }
47 local url = gitlab.build_url(selfhosted_info, 5, 5)
48 assert.equals("https://gitlab.example.com/team/project/-/blob/xyz789/src/main.py#L5", url)
49 end)
50
51 it("builds URL for nested groups (GitLab)", function()
52 local nested_info = {
53 provider = "git …
13:12… ded["copy_with_context.git"] = nil
14
15local git = require("copy_with_context.git")
16
17describe("Git utilities", function()
18 local original_system, original_trim, original_shellescape, original_fnamemodify
19
20 before_each(f …
254:25… .get_file_git_path("/home/user/project/lua/copy_with_context/git.lua")
255 assert.equals("lua/copy_with_context/git.lua", result)
256 end)
257
258 it("converts relative path to absolute before quer …
Showing the top 5 files — 2 more files (18 regions) not shown.
No evidence locations were recorded for this file. Raw result