diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..970e33c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,23 @@ +codecov: + require_ci_to_pass: no + +coverage: + precision: 2 + round: down + range: "70...100" + status: + patch: true + parsers: + gcov: + branch_detection: + conditional: yes + loop: yes + method: no + macro: no +comment: + layout: "diff,flags,files,footer" + behavior: default + require_changes: no + +github_checks: + annotations: true diff --git a/src/Logger/CreateDatabaseLogger.php b/src/Logger/CreateDatabaseLogger.php index 4efff66..5a8461c 100644 --- a/src/Logger/CreateDatabaseLogger.php +++ b/src/Logger/CreateDatabaseLogger.php @@ -17,4 +17,9 @@ public function __invoke(array $config) { return app(DatabaseHandler::class, [$config]); } + + public function testFunction() + { + echo "testers"; + } } diff --git a/src/Logger/Monolog/Handler/DatabaseHandler.php b/src/Logger/Monolog/Handler/DatabaseHandler.php index ed36e9b..9a96abc 100644 --- a/src/Logger/Monolog/Handler/DatabaseHandler.php +++ b/src/Logger/Monolog/Handler/DatabaseHandler.php @@ -27,6 +27,7 @@ public function __construct($level = Logger::DEBUG, $bubble = true, Config $conf $this->maxRecordLength = $this->config->get('db-logging.max_record_length'); $this->appLogName = $this->config->get('db-logging.log_name'); parent::__construct($level, $bubble); + $x = 1; } /** diff --git a/src/Logger/MonologDatabaseHandlerServiceProvider.php b/src/Logger/MonologDatabaseHandlerServiceProvider.php index 7f8f016..9989798 100644 --- a/src/Logger/MonologDatabaseHandlerServiceProvider.php +++ b/src/Logger/MonologDatabaseHandlerServiceProvider.php @@ -32,13 +32,15 @@ public function boot() $this->publishes([$configPath => $publishPath], 'config'); } + /** * Register the service provider. * * @return void */ public function register() - { + { + echo "here"; $configPath = __DIR__ . '/../../config/db-logging.php'; $this->mergeConfigFrom($configPath, 'db-logging'); $this->app->bind(DatabaseHandler::class, function ($app, $params) { diff --git a/tests/TestCase.php b/tests/TestCase.php index 30cbefb..c6b0f94 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -7,7 +7,6 @@ protected function getPackageProviders($app) { return [MonologDatabaseHandlerServiceProvider::class]; } - /** * Define environment setup. *