<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>st-ex</author_name>
  <author_url>https://blog.hatena.ne.jp/st-ex/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>Go</anon>
  </categories>
  <description>はじめに こんにちは、STORESの高田です STORES には Go 言語で書かれたプロダクトがいくつかあります。今回は、その中で使用しているテストヘルパー関数である testutils.Assert と応用についてご紹介します ベースは google/go-cmp 現在のコードベースでは、テスト中でデータの比較を行うのに github.com/google/go-cmp/cmp を使っています。google/go-cmp の使用例としては以下のようになります if diff := cmp.Diff(want, got, opts...); diff != &quot;&quot; { t.Errorf(&quot;di…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2024%2F12%2F17%2F170647&quot; title=&quot;Go言語プロダクトでテストヘルパー関数を導入した話 - STORES Product 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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-12-17 17:06:47</published>
  <title>Go言語プロダクトでテストヘルパー関数を導入した話</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2024/12/17/170647</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
