Sha256: 1d69ba5aa5f58ce6537bda2ab97dfeee3342fff867abaed56e8db36da4e8908d
Contents?: true
Size: 1.02 KB
Versions: 18
Compression:
Stored size: 1.02 KB
Contents
# Copyright (c) 2023 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
18 entries across 18 versions & 1 rubygems