Class NoneProviderTest

java.lang.Object
org.machanism.machai.ai.provider.none.NoneProviderTest

class NoneProviderTest extends Object
  • Constructor Details

    • NoneProviderTest

      NoneProviderTest()
  • Method Details

    • prompt_appendsTextWithBlankLineSeparators

      @Test void prompt_appendsTextWithBlankLineSeparators()
    • clear_resetsPromptBuffer

      @Test void clear_resetsPromptBuffer()
    • embedding_throwsUnsupportedOperationException

      @Test void embedding_throwsUnsupportedOperationException()
    • addTool_isNoOp

      @Test void addTool_isNoOp()
    • instructions_arePersistedAndWrittenOnPerformWhenInputsLogConfigured

      @Test void instructions_arePersistedAndWrittenOnPerformWhenInputsLogConfigured(@TempDir Path tempDir) throws Exception
      Throws:
      Exception
    • perform_withoutInputsLogConfigured_clearsPromptsButDoesNotWrite

      @Test void perform_withoutInputsLogConfigured_clearsPromptsButDoesNotWrite(@TempDir Path tempDir)
    • usage_returnsNonNullZeroUsage

      @Test void usage_returnsNonNullZeroUsage()
    • init_isNoOpButAcceptsConfigurator

      @Test void init_isNoOpButAcceptsConfigurator()
    • name_constant_isExpectedValue

      @Test void name_constant_isExpectedValue()
    • setWorkingDir_isNoOp

      @Test void setWorkingDir_isNoOp()
    • perform_createsInputsLogParentDirectories

      @Test void perform_createsInputsLogParentDirectories(@TempDir Path tempDir) throws Exception
      Throws:
      Exception
    • perform_whenInputsLogWriteFails_stillClearsPrompts

      @Test void perform_whenInputsLogWriteFails_stillClearsPrompts(@TempDir Path tempDir) throws Exception
      Throws:
      Exception
    • perform_whenInstructionsWriteFails_doesNotThrow_andStillWritesInputs

      @Test void perform_whenInstructionsWriteFails_doesNotThrow_andStillWritesInputs(@TempDir Path tempDir) throws Exception
      Throws:
      Exception