Skip to content

Instantly share code, notes, and snippets.

googletestの高度なトピック

イントロダクション

さて、googletest Primer を読んで、googletest を使ったテストの書き方を学びました。 を読み、googletest を使ってテストを書く方法を学んだので、今度は新しいトリックを学びましょう。このドキュメント このドキュメントでは、より多くのアサーションと、複雑な失敗メッセージの作成方法、致命的な失敗の伝搬について説明します。 メッセージの作成方法、致命的な失敗の伝搬、テストフィクスチャの再利用と高速化、そしてテストでのさまざまなフラグの使用方法です。 様々なフラグをテストに使用する方法を紹介します。


Network Working Group G. Clark Request for Comments: 2217 Cisco Systems, Inc. Category: Experimental October 1997

@udaken
udaken / Program.cs
Created April 21, 2022 06:21
StrConv(VbStrConvNarrow/VbStrConvWide)で変換される文字
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;
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;
@udaken
udaken / ublacklist-online-shopping.txt
Last active October 27, 2021 08:01
uBlacklist 用のショッピングサイト除去フィルター
*://*.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/*
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}
*://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/*

#~

コメント

# -*- coding: utf-8 -*-

1行目もしくは2行目に配置することで、ソースコードのデフォルトエンコーディングの指定。(この例だとutf-8)

Python 3以降では、ソースコードのデフォルトエンコーディングは UTF-8になったので、 他のエンコーディングを使用する場合に記述する。

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
#nullable enable
struct NotifiableProperty<T>
{
private readonly IEqualityComparer<T> _EqualityComparer;
--- 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>