Sha256: 64e1c781b6dbc05eb56a4000132dbf27fdf387cc27e0325e07bd9ddee99b8f6f

Contents?: true

Size: 1.28 KB

Versions: 22

Compression:

Stored size: 1.28 KB

Contents

require_relative 'repositories/in_memory_repository'
require_relative 'repositories/validate_runnable_reference'
require_relative 'repositories/test_groups'
require_relative 'repositories/test_suites'
require_relative 'repositories/tests'

# Skip loading things which require the db when not necessary, such as CLI
# commands which don't need the db
unless ENV['NO_DB']&.casecmp? 'true'
  require_relative 'repositories/repository'
  require_relative 'repositories/headers'
  require_relative 'repositories/messages'
  require_relative 'repositories/requests'
  require_relative 'repositories/results'
  require_relative 'repositories/session_data'
  require_relative 'repositories/test_runs'
  require_relative 'repositories/test_sessions'
end

module Inferno
  # Repositories provide an abstraction layer for dealing with entity
  # persistence. All code for interacting with the database lives in
  # repositories. The rest of the codebase interacts with the database through a
  # public api provided by various repositories.
  #
  # **Naming Convention:** A repository should be named the plural version of
  # the entity name. For example:
  #
  # - `TestSessions` is the repsitory for the `TestSession` entity
  # - `TestGroups` is the repository for the `TestGroup` entity
  module Repositories
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
inferno_core-0.4.29 lib/inferno/repositories.rb
inferno_core-0.4.28 lib/inferno/repositories.rb
inferno_core-0.4.27 lib/inferno/repositories.rb
inferno_core-0.4.26 lib/inferno/repositories.rb
inferno_core-0.4.25 lib/inferno/repositories.rb
inferno_core-0.4.24 lib/inferno/repositories.rb
inferno_core-0.4.23 lib/inferno/repositories.rb
inferno_core-0.4.22 lib/inferno/repositories.rb
inferno_core-0.4.21 lib/inferno/repositories.rb
inferno_core-0.4.20 lib/inferno/repositories.rb
inferno_core-0.4.19 lib/inferno/repositories.rb
inferno_core-0.4.18 lib/inferno/repositories.rb
inferno_core-0.4.17 lib/inferno/repositories.rb
inferno_core-0.4.16 lib/inferno/repositories.rb
inferno_core-0.4.15 lib/inferno/repositories.rb
inferno_core-0.4.14 lib/inferno/repositories.rb
inferno_core-0.4.13 lib/inferno/repositories.rb
inferno_core-0.4.12 lib/inferno/repositories.rb
inferno_core-0.4.11 lib/inferno/repositories.rb
inferno_core-0.4.10 lib/inferno/repositories.rb