[GH-ISSUE #254] Exclude List #3: Unit Test #254

Open
opened 2026-03-03 19:49:27 +03:00 by kerem · 0 comments
Owner

Originally created by @NghiaTranUIT on GitHub (Jun 16, 2023).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/254

Originally assigned to: @kics223w1 on GitHub.

Acceptance Criteria

  • Write a bunch of Unit Tests for the Include & Exclude List to verify it works.

Unit Test 1: Only Include List

  • Given: Include List: google.com, *.proxyman.io
  • Expected:
    google.com -> true
    httpbin.proxyman.io -> true
    httpbin.org -> false
    producthunt.com -> false

Unit Test 2: Only Exclude List

  • Given: Exclude List: google.com, *.proxyman.io
  • Expected:
    google.com -> false
    httpbin.proxyman.io -> false
    httpbin.org -> false
    producthunt.com -> false

Unit Test 3: Mix

Given:
  • Include List: google.com, *.proxyman.io
  • www.google.com, httpbin.proxyman.io, *.dev
Expected:

google.com -> true
httpbin.proxyman.io -> false
proxyman.dev -> false
httpbin.org -> false
producthunt.com -> false
api.proxyman.io -> true
www.google.com -> false
producthunt.com -> false

Unit Test 4: Write some unit tests that you think it's necessary to test some edge cases

Originally created by @NghiaTranUIT on GitHub (Jun 16, 2023). Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/254 Originally assigned to: @kics223w1 on GitHub. ## Acceptance Criteria - Write a bunch of Unit Tests for the Include & Exclude List to verify it works. #### Unit Test 1: Only Include List - Given: Include List: google.com, *.proxyman.io - Expected: google.com -> true httpbin.proxyman.io -> true httpbin.org -> false producthunt.com -> false #### Unit Test 2: Only Exclude List - Given: Exclude List: google.com, *.proxyman.io - Expected: google.com -> false httpbin.proxyman.io -> false httpbin.org -> false producthunt.com -> false #### Unit Test 3: Mix ##### Given: - Include List: google.com, *.proxyman.io - www.google.com, httpbin.proxyman.io, *.dev ##### Expected: google.com -> true httpbin.proxyman.io -> false proxyman.dev -> false httpbin.org -> false producthunt.com -> false api.proxyman.io -> true www.google.com -> false producthunt.com -> false #### Unit Test 4: Write some unit tests that you think it's necessary to test some edge cases
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxyman-windows-linux#254
No description provided.