mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
16 lines
418 B
Zig
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;
|
|
}
|
|
};
|