<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>taegawa</author_name>
  <author_url>https://blog.hatena.ne.jp/taegawa/</author_url>
  <blog_title>えがわたにっき</blog_title>
  <blog_url>https://egawata.hatenablog.com/</blog_url>
  <categories>
    <anon>go</anon>
  </categories>
  <description>注: 本記事は元々 Qiita にて公開していたものの再掲です。 概要 testify https://github.com/stretchr/testify golang でテストをより記述しやすくするためのパッケージ その中で assert パッケージは、結果値の妥当性をチェックする関数を提供する 本記事で使用したバージョン go: 1.16 testify 1.7.0 テストの書き方と結果出力 import import ( // ... 他の必要なパッケージ &quot;github.com/stretchr/testify/assert&quot; ) 引数の指定 (例) Equal 関数 assert…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fegawata.hatenablog.com%2Fentry%2F2023%2F10%2F21%2F155451&quot; title=&quot; testify の assert を使ってテストを書く - えがわたにっき&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>2023-10-21 15:54:51</published>
  <title> testify の assert を使ってテストを書く</title>
  <type>rich</type>
  <url>https://egawata.hatenablog.com/entry/2023/10/21/155451</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
