Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/search.zig
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ test "extractIdentifierFromContext: leading whitespace" {

test "searchRefs: empty symbol returns empty" {
const alloc = std.testing.allocator;
const refs = try searchRefs(alloc, .rg, "", null);
var refs = try searchRefs(alloc, .rg, "", null);
defer refs.deinit(alloc);
try std.testing.expectEqual(@as(usize, 0), refs.items.len);
}

test "searchRefs: none tool returns empty" {
const alloc = std.testing.allocator;
const refs = try searchRefs(alloc, .none, "handleFoo", null);
var refs = try searchRefs(alloc, .none, "handleFoo", null);
defer refs.deinit(alloc);
try std.testing.expectEqual(@as(usize, 0), refs.items.len);
}
Expand Down
Loading