Mock ne demek?
Yazılımda anlamı, Türkçe karşılığı ve örnek cümleler
Mock, yazılımda sahte nesne, taklit nesne anlamına gelir.
Testlerde gerçek bir nesnenin ya da servisin yerine kullanılan sahte sürüm; davranışını kontrol etmenizi ve kodunuzun onu nasıl kullandığını doğrulamanızı sağlar. Fiil olarak da kullanılır: bir servisi mock'lamak.
English: A fake version of a real object or service used in tests, so you can control its behavior and check how your code uses it. Also a verb: to mock a service.
Nerede ve nasıl kullanılır?
Geliştiriciler veritabanları, ödeme sağlayıcıları ve dış API'ler için mock oluşturur; böylece birim testleri hızlı ve ağ bağlantısı olmadan çalışır. Sık kalıplar: 'mock the API', 'mock out the clock', 'too many mocks'. Türkçede 'mock'lamak' denir.
Örnek cümleler
We mock the payment provider, so the tests never charge a real card.
Ödeme sağlayıcısını mock'luyoruz, böylece testler hiçbir zaman gerçek bir karttan ödeme çekmiyor.
This test has so many mocks that it doesn't test anything real.
Bu testte o kadar çok mock var ki gerçek hiçbir şeyi test etmiyor.
Sık kullanılan kalıplar
- mock a service
- mock object
- mock out
- mock data
İlgili terimler
Aynı konudan: Yazılım Testi
- edge case · uç durum
- QA · kalite güvencesi
- regression · gerileme
- test coverage · test kapsamı
- end-to-end test · uçtan uca test
- flaky · kararsız
- test suite · test paketi
- manual testing · manuel test
- automated testing · otomatik test
- assertion · doğrulama ifadesi
- smoke test · duman testi
- happy path · sorunsuz senaryo
Seviyene uygun okumayla pekiştir
Yeni kelimelerin kalıcı olmasının en hızlı yolu seviyene uygun metin okumaktır. Seviyene göre ücretsiz İngilizce kitaplar:
