Sha256: 535e7cceb59909a4e5c2dc89b31f67ec46f0ef7ea0ee615ed829b50dafab4a0b
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: false require_relative 'api/init' module Contrast # :nodoc: module Test # :nodoc: extend Contrast::AgentLib::Init LOG_DIR = File.join(File.dirname(__FILE__)) class << self def test_init_with_options enable_log, log_level dl__init_with_options(enable_log, LOG_DIR, log_level) end end end end # for the other cases - I tried with loop and everything, but nothing worked # Contrast::Test.test_init_with_options(true, "WARN") # Contrast::Test.test_init_with_options(true, "ERROR") # Contrast::Test.test_init_with_options(true, "DEBUG") # Contrast::Test.test_init_with_options(true, "TRACE") response = Contrast::Test.test_init_with_options(true, 'INFO') puts response # rubocop:disable Rails/Output # we cannot check here for the file as it's being created after the execution of the file is done raise(StandardError, 'Not Working') if response == false
Version data entries
4 entries across 4 versions & 1 rubygems