<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TAMA_CHAN</author_name>
  <author_url>https://blog.hatena.ne.jp/TAMA_CHAN/</author_url>
  <blog_title>Kashiwara0205</blog_title>
  <blog_url>https://tama-chan.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>最近、生成AIネタばっかり書いてる気がする。 ふと、どれだけ複雑なコードに生成AIが耐えられるのか実験したくなりやってみた。 何をするのか 複雑なコードを書いて自動テストを生成AIに実装させる 自動生成されたテストケース数とテスト通過数を観察する モデル Gpt-4o 実験に使うコード 今回は事前に用意した下の複雑なコードを使う 可能な限りパスケースを用意した中々にヤバめのコードである def get_diff_hash(a_value, b_value, a_name, b_name, flg) if a_name.nil? raise ArgumentError, 'a_name cann…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftama-chan.hatenadiary.jp%2Fentry%2F2025%2F04%2F27%2F233715&quot; title=&quot;生成AIが書く自動テストは複雑なコードに耐えられるのか - Kashiwara0205&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>2025-04-27 23:37:15</published>
  <title>生成AIが書く自動テストは複雑なコードに耐えられるのか</title>
  <type>rich</type>
  <url>https://tama-chan.hatenadiary.jp/entry/2025/04/27/233715</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
