Skip to Content
실무로 통하는 클린 코드
book

실무로 통하는 클린 코드

by 막시밀리아노 콘티에리, 이태영
August 2024
Beginner to intermediate
488 pages
11h 1m
Korean
Hanbit Media, Inc.
Content preview from 실무로 통하는 클린 코드
403
20
테스트
# 테스트
assert winner == "Lewis Hamilton"
불필요한 어서션을 보면, 몇 가지 패턴을 찾을 수 있습니다. 테스트는 산문이어야 합니다. 항상
독자에게 집중하세요. 지금부터 몇 달 후의 독자는 여러분이 될 수도 있습니다.
관련 레시피
20
.
5
절 ‘일반 어서션 다듬기’
20.11
모든 병합 요청에 대해 커버리지 추가하기
문제
커버리지에 포함하지 않은 병합 요청이 있습니다.
해결
모든 코드 변경 사항을 해당 테스트 커버리지에 반영하려고 하세요.
설명
테스트 커버리지가 없는 병합 요청은 전반적인 시스템 품질을 낮추고 유지 관리 가능성
을 손상시킵니다. 변경이 필요한 경우 코드의 실제 명세를 업데이트하세요. 코드가 무엇을 하
는지에 대한 죽은 문서를 생성하는 대신 이를 커버하는 시나리오를 작성해야 합니다. 테스트가
없는 코드를 변경한다면 커버리지를 추가해야 합니다. 기존 커버리지가 있는 코드를 변경한다
면 이는 행운입니다! 하지만 테스트가 고장났다면 이를 수정해야 합니다.
다음은 커버리지가 없는 기능 변경입니다.
export function sayHello(name: string): string {
const lengthOfName = name.length;
- const salutation =
- ́오늘은 어때 ${name}?, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

데이터 과학을 위한 통계(2판)

데이터 과학을 위한 통계(2판)

이준용, 피터 브루스, 앤드루 브루스, 피터 게데크
클라우드 네이티브 애플리케이션 디자인 패턴

클라우드 네이티브 애플리케이션 디자인 패턴

카순 인드라시리, 스리스칸다라자 수호티얀
데이터 엔지니어를 위한 97가지 조언

데이터 엔지니어를 위한 97가지 조언

Tobias Macey, 임혜연(Lim Hye Yeon)

Publisher Resources

ISBN: 9791169212779