• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

miaoxing / plugin / 6669874973

27 Oct 2023 02:09PM UTC coverage: 39.147% (-0.2%) from 39.313%
6669874973

push

github

twinh
feat(plugin): 增加 `config:preload` 命令,用于更新过期的预加载配置

0 of 10 new or added lines in 2 files covered. (0.0%)

10 existing lines in 1 file now uncovered.

927 of 2368 relevant lines covered (39.15%)

17.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Command/ConfigPreload.php
1
<?php
2

3
namespace Miaoxing\Plugin\Command;
4

5
/**
6
 * @mixin \ConfigMixin
7
 */
8
class ConfigPreload extends BaseCommand
9
{
10
    protected function configure()
11
    {
NEW
12
        $this->setDescription('Update the preload cache if it has expired');
×
13
    }
14

15
    protected function handle()
16
    {
NEW
17
        if ($this->config->updatePreloadIfExpired()) {
×
NEW
18
            $this->suc('Updated preload cache');
×
19
        } else {
NEW
20
            $this->suc('Preload cache is up to date');
×
21
        }
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc