Skip to content

Fix deserialize_ResponseResult #150

@gophergogo

Description

@gophergogo

In MCP example client, having output:

  test.log:  [FAIL] Resource: config://server/settings - Not found
  test.log:  [FAIL] Resource: log://server/events - Not found
  test.log:  [FAIL] Resource: metrics://server/stats - Not found
// Test counter for tracking pass/fail
  struct TestResults {
    int passed = 0;
    int failed = 0;

    void pass(const std::string& test_name) {
      passed++;
      std::cerr << "  [PASS] " << test_name << std::endl;
    }

    void fail(const std::string& test_name, const std::string& reason = "") {
      failed++;
      std::cerr << "  [FAIL] " << test_name;
      if (!reason.empty()) {
        std::cerr << " - " << reason;
      }
      std::cerr << std::endl;
    }

    void summary() {
      std::cerr << "\n========================================" << std::endl;
      std::cerr << "TEST SUMMARY: " << passed << " passed, " << failed
                << " failed" << std::endl;
      std::cerr << "========================================" << std::endl;
    }
  };

PR

#151

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions