Skip to main content
Glama
CaptureVideoCommandTests.swift886 B
import CoreGraphics import Foundation import PeekabooCore import Testing @testable import PeekabooCLI @Suite("CaptureVideoCommand sampling") struct CaptureVideoCommandTests { @Test("buildOptions clamps video defaults") func buildOptions() async throws { var cmd = CaptureVideoCommand() let opts = cmd.buildOptions() #expect(opts.maxFrames >= 1) #expect(opts.resolutionCap == 1440) #expect(opts.diffStrategy == .fast) } @Test("parsing requires input positional") func parsingRequiresInput() async throws { #expect(throws: (any Error).self) { _ = try CaptureVideoCommand.parse([]) } } @Test("parsing sets input positional") func parsingSetsInput() async throws { let cmd = try CaptureVideoCommand.parse(["/tmp/demo.mov"]) #expect(cmd.input == "/tmp/demo.mov") } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/steipete/Peekaboo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server