Files
game-data/src/models/test.rb
Gregory Ballantine c74ca114d8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Fixed a logic error with removing benchmarks from a test; cleaned up some linter errors
2025-08-12 12:19:25 -04:00

15 lines
301 B
Ruby

# frozen_string_literal: true
# Test - database model for hardware tests
class Test < Sequel::Model
one_to_many :result
many_to_one :hardware
many_to_many :benchmarks
def benchmark?(benchmark_id)
return benchmarks_dataset.where(Sequel[:benchmarks][:id] => benchmark_id).any?
end
end