さて、googletest Primer を読んで、googletest を使ったテストの書き方を学びました。 を読み、googletest を使ってテストを書く方法を学んだので、今度は新しいトリックを学びましょう。このドキュメント このドキュメントでは、より多くのアサーションと、複雑な失敗メッセージの作成方法、致命的な失敗の伝搬について説明します。 メッセージの作成方法、致命的な失敗の伝搬、テストフィクスチャの再利用と高速化、そしてテストでのさまざまなフラグの使用方法です。 様々なフラグをテストに使用する方法を紹介します。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Microsoft.VisualBasic; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*://*.amazon.co.jp/* | |
*://*.rakuten.co.jp/* | |
*://www.yodobashi.com/* | |
*://www.monotaro.com/* | |
*://*.shopping.yahoo.co.jp/* | |
*://shopping.yahoo.co.jp/* | |
*://store.guessjapan.com/* | |
*://www.yoshiki-trading.co.jp/* | |
*://*.store.sony.jp/* | |
*://*.shop.rohto.co.jp/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach($f in Get-ChildItem "*.cs" -Recurse) { | |
if ( Test-Path -Path "$($f.FullName).meta" ) { | |
continue; | |
} | |
$guid = [Guid]::NewGuid().ToString("N"); | |
Write-Output "fileFormatVersion: 2 | |
guid: ${guid} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*://hk.uwenku.com/* | |
*://aviatorwatch.jp/* | |
*://rowkey.net/* | |
*://lakulaku-life.jp/* | |
*://www.codetd.com/* | |
*://*.dns2.us/* | |
*://entityframework.net/* | |
*://nd9uyd0.onmypc.org/* | |
*://simy.dip.jp/* | |
*://ja.ojit.com/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
#nullable enable | |
struct NotifiableProperty<T> | |
{ | |
private readonly IEqualityComparer<T> _EqualityComparer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- C:/Users/User/Desktop/clang-8.0.1.txt Mon Sep 30 01:38:47 2019 | |
+++ C:/Users/User/Desktop/clang-9.0.0.txt Mon Sep 30 01:38:57 2019 | |
@@ -1,768 +1,808 @@ | |
OVERVIEW: clang LLVM compiler | |
USAGE: clang.exe [options] file... | |
OPTIONS: | |
-### Print (but do not run) the commands to run for this compilation | |
--analyzer-output <value> |
NewerOlder