roc/src/bundle/test_util.zig
2025-08-11 22:52:07 -04:00

16 lines
418 B
Zig

//! Common test utilities for bundle tests
const std = @import("std");
/// Iterator for file paths used in tests
pub const FilePathIterator = struct {
paths: []const []const u8,
index: usize = 0,
pub fn next(self: *FilePathIterator) !?[]const u8 {
if (self.index >= self.paths.len) return null;
const path = self.paths[self.index];
self.index += 1;
return path;
}
};