<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goyoki</author_name>
  <author_url>https://blog.hatena.ne.jp/goyoki/</author_url>
  <blog_title>千里霧中</blog_title>
  <blog_url>https://goyoki.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>前エントリ「テスタビリティ(試験性)を確保するための設計方針 - 千里霧中」の補足として、「テスタビリティ(試験性、Testability)を拡張可能にする」の実装について解説します。拡張を実現する手段の一つに接合部(Seam)があります。今回は実装例として、接合部の一種である、メソッドインジェクションを使ってテスタビリティを拡張可能にする例を示します。 対象コード 次のtarget_method()をテストする場合について考えます。 target_method()は、device_controller_run()を呼び出して、外部デバイスを制御するメソッドです。 def device_con…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoyoki.hatenablog.com%2Fentry%2F2021%2F06%2F13%2F222555&quot; title=&quot;テスタビリティ(試験性)の拡張を実現する実装 - 千里霧中&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>2021-06-13 22:25:55</published>
  <title>テスタビリティ(試験性)の拡張を実現する実装</title>
  <type>rich</type>
  <url>https://goyoki.hatenablog.com/entry/2021/06/13/222555</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
