<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oba_atsushi</author_name>
  <author_url>https://blog.hatena.ne.jp/oba_atsushi/</author_url>
  <blog_title>MicroAd Developers Blog</blog_title>
  <blog_url>https://developers.microad.co.jp/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>テスト</anon>
  </categories>
  <description>こんにちは。 マイクロアドで機械学習エンジニアをしている大庭です。 今回の記事では Go で TableDrivenTest を書く上で重要になってくる subTests の使い方を紹介します。 subTests subTests は Go1.7 から追加された１つのテスト関数の中に階層を作るための機能です。 subTests を利用するメリットとしてはテストケース毎に正否判定を行える、特定のテストケースのみ実行できる、テストの並列実行ができるなどが挙げられます。 subTests の基本的な使い方 はじめに subTests の基本的な利用方法を subTests ありなしのコードを比較する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdevelopers.microad.co.jp%2Fentry%2F2023%2F07%2F07%2F180000&quot; title=&quot;GoのsubTestsを活用したTableDrivenTest - MicroAd Developers Blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/o/oba_atsushi/20230706/20230706103612.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-07-07 18:00:00</published>
  <title>GoのsubTestsを活用したTableDrivenTest</title>
  <type>rich</type>
  <url>https://developers.microad.co.jp/entry/2023/07/07/180000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
