MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / strategy_one_explicit_one_disabled

Function strategy_one_explicit_one_disabled

src/formatting.rs:691–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

689
690 #[test]
691 fn strategy_one_explicit_one_disabled() {
692 let config = FormattingConfig {
693 pint: None,
694 php_cs_fixer: Some("/usr/bin/php-cs-fixer".to_string()),
695 phpcbf: Some(String::new()),
696 timeout: None,
697 };
698 let strategy = resolve_strategy(None, &config, None, None);
699 match &strategy {
700 FormattingStrategy::External(tools) => {
701 assert_eq!(tools.len(), 1);
702 assert_eq!(tools[0].name, "php-cs-fixer");
703 }
704 other => panic!("Expected External, got {:?}", other),
705 }
706 }
707
708 #[test]
709 fn strategy_require_dev_php_cs_fixer() {

Callers

nothing calls this directly

Calls 1

resolve_strategyFunction · 0.85

Tested by

no test coverage detected