<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Divekit v2 on Divekit</title><link>https://divekit.org/docs/archive/divekit-v2/</link><description>Recent content in Divekit v2 on Divekit</description><generator>Hugo</generator><language>en</language><atom:link href="https://divekit.org/docs/archive/divekit-v2/index.xml" rel="self" type="application/rss+xml"/><item><title>Go Testing Guide (Legacy)</title><link>https://divekit.org/docs/archive/divekit-v2/go-testing-guide-legacy/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://divekit.org/docs/archive/divekit-v2/go-testing-guide-legacy/</guid><description>&lt;div class="pageinfo pageinfo-primary"&gt;&#10;&lt;p&gt;Legacy material: this document is preserved for historical context and is not the current testing standard for Divekit CLI.&lt;/p&gt;&#10;&lt;/div&gt;&#10;&lt;h3 id="what-should-be-tested-in-this-project"&gt;What should be tested in this project?&lt;/h3&gt;&#10;&lt;p&gt;Given that this CLI is the entry point for the user to interact with Divekit, it is essential to test all commands.&#10;Currently, there is only one command &lt;code&gt;patch&lt;/code&gt;, but all commands should be tested with the following aspects in mind:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;em&gt;&lt;strong&gt;Command Syntax&lt;/strong&gt;&lt;/em&gt;: Verify that the command syntax is correct&lt;/li&gt;&#10;&lt;li&gt;&lt;em&gt;&lt;strong&gt;Command Execution&lt;/strong&gt;&lt;/em&gt;: Ensure that executing the command produces the expected behavior or output&lt;/li&gt;&#10;&lt;li&gt;&lt;em&gt;&lt;strong&gt;Options and Arguments&lt;/strong&gt;&lt;/em&gt;: Test each option and argument individually to ensure they are processed correctly&#10;and test various combinations of options and arguments&lt;/li&gt;&#10;&lt;li&gt;&lt;em&gt;&lt;strong&gt;Error Handling&lt;/strong&gt;&lt;/em&gt;: Test how the command handles incorrect syntax, invalid options, or missing arguments&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Additionally, testing the utility functions is necessary, as they are used throughout the entire project.&#10;For that the following aspects should be considered:&lt;/p&gt;</description></item></channel></rss>