Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Builtins (0.16 sec)

  1. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnsh/ShellInvoker.java

            Builtins builtins = new Builtins(context.cwd, configPath, null);
            builtins.rename(Builtins.Command.TTOP, "top");
            builtins.alias("zle", "widget");
            builtins.alias("bindkey", "keymap");
    
            ShellCommandRegistryHolder holder = new ShellCommandRegistryHolder();
            holder.addCommandRegistry(builtins);
    
            // gather commands
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Thu Oct 16 06:12:36 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_python_types/test_tutorial006.py

    from unittest.mock import patch
    
    from docs_src.python_types.tutorial006_py39 import process_items
    
    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items(["item_a", "item_b", "item_c"])
    
        assert mock_print.call_count == 3
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("item_a",),
            ("item_b",),
            ("item_c",),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 426 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_python_types/test_tutorial008.py

    from unittest.mock import patch
    
    from docs_src.python_types.tutorial008_py39 import process_items
    
    
    def test_process_items():
        with patch("builtins.print") as mock_print:
            process_items({"a": 1.0, "b": 2.5})
    
        assert mock_print.call_count == 4
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
            ("a",),
            (1.0,),
            ("b",),
            (2.5,),
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 417 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_python_types/test_tutorial001_tutorial002.py

    import pytest
    
    
    @pytest.mark.parametrize(
        "module_name",
        [
            "tutorial001_py39",
            "tutorial002_py39",
        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 398 bytes
    - Viewed (0)
  5. tests/test_tutorial/test_python_types/test_tutorial008b.py

        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_process_items(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.process_item("a")
    
        assert mock_print.call_count == 1
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 637 bytes
    - Viewed (0)
  6. tests/test_tutorial/test_python_types/test_tutorial011.py

    @pytest.mark.parametrize(
        "module_name",
        [
            pytest.param("tutorial011_py39"),
            pytest.param("tutorial011_py310", marks=needs_py310),
        ],
    )
    def test_run_module(module_name: str):
        with patch("builtins.print") as mock_print:
            runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
    
        assert mock_print.call_count == 2
        call_args = [str(arg.args[0]) for arg in mock_print.call_args_list]
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 691 bytes
    - Viewed (0)
  7. tests/test_tutorial/test_python_types/test_tutorial009_tutorial009b.py

        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
            module.say_hi()
    
        assert mock_print.call_count == 2
        call_args = [arg.args for arg in mock_print.call_args_list]
        assert call_args == [
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 805 bytes
    - Viewed (0)
  8. tests/test_tutorial/test_python_types/test_tutorial009c.py

        ],
    )
    def get_module(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.python_types.{request.param}")
        return mod
    
    
    def test_say_hi(module: ModuleType):
        with patch("builtins.print") as mock_print:
            module.say_hi("FastAPI")
    
        mock_print.assert_called_once_with("Hey FastAPI!")
    
        with pytest.raises(
            TypeError,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 777 bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SIDTest.java

                SID unknownBuiltin = new SID(buildSidT((byte) 1, ident, 544), jcifs.SID.SID_TYPE_UNKNOWN, "BUILTIN", "ignored", false);
                assertEquals(unknownBuiltin.toString(), unknownBuiltin.toDisplayString());
    
                // BUILTIN with other type also returns acctName
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SID.java

         * been resolved and it is not a domain SID or builtin account,
         * the full DOMAIN\name form of the account will be
         * returned (e.g. MYDOM\alice or MYDOM\Domain Users).
         * If the SID has been resolved but it is is a domain SID,
         * only the domain name will be returned (e.g. MYDOM).
         * If the SID has been resolved but it is a builtin account,
         * only the name component will be returned (e.g. SYSTEM).
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top