# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 1
# self = https://watcher.sour.is/conv/yrw545a
Golang 單元測試中打樁庫 gomonkey
一、打樁介紹 樁或稱樁代碼,是指用來代替關聯代碼或者未實現代碼的代碼。如果函數 B 用 B1 來代替,那麼,B 稱爲原函數,B1 稱爲樁函數。打樁就是編寫或生成樁代碼。1.1 目的函數打樁的目的一般是隔離、佔位和控制。 隔離是指將測試任務從產品項目中分離出來,使之能夠獨立編譯、鏈接,並獨立運行。隔離的基本方法就是打樁,將測試任務之外的,並且與測試任務相關的代碼,用樁來代替,從而實現分離測試任務。例 ⌘ Read more