[PR #777] [MERGED] Unit tests for models/wiki #15568

Closed
opened 2025-11-02 11:49:37 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/777
Author: @ethantkoenig
Created: 1/27/2017
Status: Merged
Merged: 1/28/2017
Merged by: @andreynering

Base: masterHead: tests/wiki


📝 Commits (1)

  • bb76285 Unit tests for models/wiki

📊 Changes

3 files changed (+68 additions, -1 deletions)

View changed files

📝 models/setup_for_test.go (+10 -0)
📝 models/wiki.go (+1 -1)
models/wiki_test.go (+57 -0)

📄 Description

Unfornuately, many of the functions in models/wiki.go rely on git and the file-system, so they can't be tested until we find a good approach for testing functions with git/file-system dependencies.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/777 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 1/27/2017 **Status:** ✅ Merged **Merged:** 1/28/2017 **Merged by:** [@andreynering](https://github.com/andreynering) **Base:** `master` ← **Head:** `tests/wiki` --- ### 📝 Commits (1) - [`bb76285`](https://github.com/go-gitea/gitea/commit/bb76285762186c7ca2add7c199114786a3b2e207) Unit tests for models/wiki ### 📊 Changes **3 files changed** (+68 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/setup_for_test.go` (+10 -0) 📝 `models/wiki.go` (+1 -1) ➕ `models/wiki_test.go` (+57 -0) </details> ### 📄 Description Unfornuately, many of the functions in `models/wiki.go` rely on git and the file-system, so they can't be tested until we find a good approach for testing functions with git/file-system dependencies. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:49:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15568