---
title: "Xuanyu Wang (@xuanyu) | Hashnode"
description: "Fullstack web developer. Read the latest articles by Xuanyu Wang on Hashnode."
url: "https://hashnode.com/@xuanyu"
---

@xuanyu

# Xuanyu Wang

@xuanyu · Toronto, Canada · Joined December 2023

Fullstack web developer

[Website](https://xuanyu.ca/)

### [Test in Go: clean environment for each test case](https://xuanyu.ca/test-in-go-clean-environment-for-each-test-case?utm_source=hashnode&utm_medium=feed)

I can not address unit tests enough. It’s every developer’s best friend. Of course, writing and maintaining unit tests costs a lot of time. Being a developer is not easy. Who’s your allies that always stands with you? Unit tests. What about our bosse...

4 min read · [xuanyu.ca](https://xuanyu.ca/test-in-go-clean-environment-for-each-test-case?utm_source=hashnode&utm_medium=feed)

[May 18, 2025](https://hashnode.com/posts/test-in-go-clean-environment-for-each-test-case/682a457c9bda6df267633e2e)

### [Unmasking Hidden Test Pitfalls in Go: Avoiding False Positives](https://xuanyu.ca/unmasking-hidden-test-pitfalls-in-go-avoiding-false-positives?utm_source=hashnode&utm_medium=feed)

The nightmare in testing would be false positive. “Every thing is passing! Amazing!” until at an unknown time in the future all the mines explode together and blow your team to hell. There are many reasons that tests could fail silently. Today, I’m g...

3 min read · [xuanyu.ca](https://xuanyu.ca/unmasking-hidden-test-pitfalls-in-go-avoiding-false-positives?utm_source=hashnode&utm_medium=feed)

[Dec 25, 2024](https://hashnode.com/posts/unmasking-hidden-test-pitfalls-in-go-avoiding-false-positives/676c8f31e216d74eb3cacfa3)

### [Pagination condition for multiple columns](https://xuanyu.ca/pagination-condition-for-multiple-columns?utm_source=hashnode&utm_medium=feed)

With runable Go code example and real database

9 min read · [xuanyu.ca](https://xuanyu.ca/pagination-condition-for-multiple-columns?utm_source=hashnode&utm_medium=feed)

[May 21, 2024](https://hashnode.com/posts/pagination-condition-for-multiple-columns/664bfdf6b5cf99ad353b64a4)

### [Test in Go: risk of using Cleanup](https://xuanyu.ca/test-in-go-risk-of-using-cleanup?utm_source=hashnode&utm_medium=feed)

Be careful on what's not guaranteed!

3 min read · [xuanyu.ca](https://xuanyu.ca/test-in-go-risk-of-using-cleanup?utm_source=hashnode&utm_medium=feed)

[Feb 18, 2024](https://hashnode.com/posts/test-in-go-risk-of-using-cleanup/65d25b0d873e568c64e3eb73)

### [Test in Go: the order of Cleanup is not what you think](https://xuanyu.ca/test-in-go-the-order-of-cleanup-is-not-what-you-think?utm_source=hashnode&utm_medium=feed)

Cleanup functions are not executed in the expected order

3 min read · [xuanyu.ca](https://xuanyu.ca/test-in-go-the-order-of-cleanup-is-not-what-you-think?utm_source=hashnode&utm_medium=feed)

[Feb 12, 2024](https://hashnode.com/posts/test-in-go-the-order-of-cleanup-is-not-what-you-think/65c9888739e30fedbe24133a)
